Minification optimization

Changed the bundle process to be a further minification instead of a simple concatenation of minified files.
Also added the beautify option if minification isn't active.

This makes the bundling process slightly slower but allows us to get ~3k size off the unzipped full bundle (206k) and 1k off the gzipped (~55k).

Review is much appreciated!