Low Loss Integrated Photonic Devices and Their Applications in Astrophotonics and Quantum Information