Additional features / cleanup.

Source formatting.
Callbacks are returning data as JSON objects now.
Factory method for client.
Proxy & useragent support.
Constructor arguments with default values for API client.