Studies on guided wave devices and ultracold atoms in optical cavity for applications in quantum optics and quantum information