Cleaned up the robot command protogol.

Implemented a simple javascript socket client to communicate
with the server. Seems to work but get an occasional timeout
(Error reserving a job: {deadline_soon}).