Update createError() to work with objects of type Error
Update createError() to work with objects of type Error

- Do not wrap an Error object in another Error object.
- Use the standard Error type instead of creating a custom object which behaves like Error.

Azure/azure-mobile-apps-js-client,Azure/azure-mobile-apps-js-client,Azure/azure-mobile-apps-js-client