Update unit tests to be headless

Setup RSpec tests to run on phantomJS, which allows the tests to be run on a CI server, where there is likely no firefox installation available.
Also setup project to support simplecov for test coverage measurement (use "rake coverage")