Quantum mechanics and field theory on multiply connected and on homogeneous spaces