Implemented draft of API Server.

Commnication with JSON. Uses gson.