Initial set of Private API functions and better error handling for REST Method invocations.