Finally module system is working

I have only changed these files to make it work: core.js, jiesa.js,
support.js, util.js, collection.js, types.js