added support for AMD loaders

many changes due to nesting the modules another level
restructured module header
added phantomjs tests (incl. fail-demo)
added requirejs dependency
updated grunt to 0.4.2