Added basic functions defined in API document

It also has a JSON client which checks the working of the implemented methods. It is still not up to mark, but can be taken as a decent skeleton of the server.