A telescope control and scheduling system for the Gravitational-wave Optical Transient Observer