Changed browser to PhantomJS for test execution
Moved directive and test to separate files. Added utility to trigger events in tests. Added tests for directive.
Added support of firebase