Added basic json proxy server example
Added proper config from command line and cleaned up a bunch
Enrich exceptions thrown when other status than 200 is encountered.
There needs to be better exception objects here.
Added some error handling