Added functionality to include a body with the request and to set the X-...

...HTTP-Method header. Also added code to include the request digest on all non-GET requests. Fixed some small typos.