Add AMD and CommonJS support
Merge branch 'master' of https://github.com/Swatto/spectrum
add separate test for loader support with requirejs