Adjust API wrapper to handle errors from WebApi

This adds additional logic to the public API wrapper ErrorParser to ensure that errors being generated by the new WebApi framework are handled in an identical fashion as those produced from the legacy API framework. Includes functionality to strip xml namespaces, add new parsing logic so that we can maintain simple types for error messages, and additional tests to cover new code.