Interaction of electron beams with optical nanostructures and metamaterials: from coherent photon sources towards shaping the wave function. (12th September 2017)