Unit tests working now through grunt.  Refactoring threads.js into phantom.js so that pages can be fetched after javascript rendering.