Add tests for builtin page view tracking feature

This is branched off <https://github.com/okfn/ckan/pull/730>, but once <https://github.com/okfn/ckan/pull/730> is merged this should merge into master fine.