Fix up tests to work with coverage.
Fix dependancies so grunt and travis work.
Fixed grunt to NOT run the phantomjs watch task which hangs prevents grunt from exiting in travis (use grunt karma:test to run this version).