Added REST API to server

- Browsers use REST API to send actions to the server.
- Server emits real-time events to native client.
- Native client executes mplayer.