bug(loader): check for existing loader plugins when patching RequireJS

The loader plugin assumes that all files that have an `.html` extension should have a custom loader configured, even if there is already a loader plugin specified. This fixes the loader to check for this case. As part of this fix, the module loader was also improved so that it passes require.js errors along to the wrapping promise.

Closes #21