Manipulating Light With Metamaterials: Synchrotron Radiation From An Accelerating Light Pulse And On-Chip Devices