Added user configurable Http User Agent. Added some comments and code cleanup.
Added basic support for the CREST api using dynamic objects. There is currently no error checking.