Added caching, fixed bug with build script and added qunit
More prep for unit tests