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
 remove restify dependency as the api seperate now
removing the server api tests as the in the module
Merge pull request #1 from alexwhitman/split-api-server

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