Send commands as JSON not forms.
Merge pull request #2 from paul-lshift/json-commands

Send commands as JSON, not as forms.