Some renaming and setting up Karma and phantomjs for unit testing.