Repaired build setup and added uglify step. The tests now also run on the minified version.