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