Http robot control

REST based protocol to control robot. 
This catch for the errorMessage seems to be in the wrong spot (encodeFinishMessage)