Added a minify function to minify css and javascript but doesnt work well enough yet. Also changed the module system a bit.