Changed stuff to support official AutoRemote plugin API

- made it accept POST requests with Content-Type "application/json"
- used communication classes to instantiate Message
- Added response to conform with the AutoRemote API
Merge pull request #2 from joaomgcd/master

Changed stuff to support official AutoRemote plugin API