Locally controlled photonic crystal devices with coupled quantum dots: physics and applications