[ViewNote: Bugfix]

- Fixed a bug where the 'msg' template showed up even if there was no
message to be shown.
Tests for paginate.
More QUnit tests. Still need to test AJAX responses.