Work with RequireJS

require function in the compiled crafty.js expects the exported symbols the be defined in module.exports object. If using RequireJS Crafty was never added to the object. That leads to `var Crafty = require('./core.js'),` returning an empty object which leads to Crafty failing to initialize.
Merge pull request #667 from Hilzu/requirejs

Work with RequireJS