Added ability to pass an object to the 'data' parameter

- Added the ability to pass an object to the *data* parameter
- Corrected the usage of the request query string (add it to the request URL for all request types except POST)
- Corrected the error function callback
- Corrected issues with deferred object being not returned