Removed some wrong calls to Writes() when building API
Set up URLs to run the app against a local server.

In addition to this commit, it is necessary to set

  "hostname"         : "0.0.0.0"
  "port"             : "8080"
  "personaHostName"  : "0.0.0.0:8080"

in your config.json.
WIP: Server-side changes for commands.

The server stores the recognized commands in a 'commands' table,
and keeps track of which devices implement which commands in a
'device_has_command' table.

The server issues a push notification for the device to trigger
a command and saves the context of the command (that is, command and
arguments) in memory waiting for the device to fetch it.

TODO:

Serve command context to device
Let device register/update the commands it implements