Fixed major issue with tests.

- Converted loader to use `require.toUrl`.
Updated to work correctly with Dojo and relative.

- Now functions correctly with relative paths.
- Works properly with Dojo.
- Fixed remaining tests to be accurate.
Merge pull request #3 from tbranyen/wip

Serious corrections to library to account for bad tests.