AMD loading support. Tested with RequireJS

Used a similar AMD test as the amdjs/backbone project. Any interest in incorporating this?