added features for rest interface and error handler.
added new rest features
Added new interfaces and tests
added headers
fixed scope issue
Merge pull request #658 from rockytriton/339_EnhancedRestClient_Interface

Added Rest interfaces and support for rest error handling