refactor api server into its own module and add socket.io

- remove the api server into its own module
- add socket.io ready for websocket connections

https://github.com/dobot/jarvis-module-apiserver