Bug 987351 -  Migrate caldav_test.js to use new "view" code.

Refactor caldav_test.js and enable the tests of it.
http://bugzil.la/987351