Added todo unit tests.

Using Karma + Jasmine + PhantomJS.
Added E2E test, using Chrome.