Feature/json requests

I have created a branch from your work that allows the user of this api to build requests which are encoded in json or xml. 

I also added more of a package structure , so that extensions to the library are a bit easier to make, instead of everything living in one file. Lastly, the package can be installed using setuptools.