Adds support for using Crafty as a CommonJS module such as in browserify

--HG--
extra : amend_source : 3593fac1aeab9a6efbf8fd9e1cbbead9418999e6
Merge pull request #496 from 00Davo/commonjs

Adds support for using Crafty as a CommonJS module such as in browserify