Restful client and server for remote control