Quantum control and feedback: foundations and applications