make Durandal compatible with the dojo AMD loader

replace CommonJS wrapping; add checks in system.js for dojo and
requirejs
Merge pull request #78 from dgwalton/master

make Durandal compatible with dojo AMD loader