Added AMD support

- Cleaned up the factory loader
- Tweaked a bunch of tests where the date was not parsing correctly
- Tuned the the .jshintrc file

Fixes #8