========= JSON APIs ========= GET /services # returns the list of running services GET /services/ # returns informations about the service # 404 if was not found GET /services//start , GET /services//stop # Start/stop a service. Returns a json object {'result': state} where state # is a boolean GET /config # return a key:value dictionary for each item in the config file. PUT /config ## XXX must be post. ### # given a dictionary {key:value}, substitute each item with name `key` in # the dictionary with `value`. # In case of error, return a json object {'error':message} GET /tor/ # Wraps the command GETINFO to the controlport. # return 404 in case the command is not valid, a json object {'error':message} # otherwise POST /auth/login # oAuth login - not implemented. GET /auth/logout # logout