Use resource util in amd plugin
Add pluggable resource lookup via loaders hash
Include define flag on define modules
Add test for no define file parsing
Handle invalid AMD files gracefully
Flag amd resources as such