[#744] Start writing tests for page-view tracking
[#744] Add tracking_enabled = true to test-core.ini

This makes the test_tracking.py tests pass
Merge branch 'master' of github.com:okfn/ckan into 744-tests-for-page-view-tracking

Conflicts:
	test-core.ini
Merge branch 'master' of github.com:okfn/ckan into 744-tests-for-page-view-tracking
Merge branch 'master' of github.com:okfn/ckan into 744-tests-for-page-view-tracking
[#744] Fix package and resource view tracking

An optimization broke the package and resource view tracking. Package
and resource dicts are now sometimes gotten from the Solr cache instead
of dictized each time, but these cached dicts may contain outdated
tracking data.

Add the tracking data to the package and resource dicts in the logic
instead of in the dictization. So the tracking data is now added after
the dictization or Solr cache retrieval, this way the tracking data is
always the latest.
[#744] Add some TODOs to page view tracking tests
[#714] Add a page view tracking test
[#744] PEP-8
[#744] Don't add package data in Package's as_dict

This is done in the logic now
[#744] Don't add tracking data in Resource's as_dict

This is done in the logic now
[#744] Update some tests

Now that tracking_summary is done in logic, not dictization
[#744] Update an outdated test
[#744] Update an outdated test
[#744] Update an outdated test
Merge branch 'master' of github.com:okfn/ckan into 744-tests-for-page-view-tracking
Merge branch 'master' into 744-tests-for-page-view-tracking
Merge branch '744-tests-for-page-view-tracking'