Control software for robotic observatories