[#1617] Clean up templates/package/related_list

Stop using the package dict unnecessarily
Fix pep8
Don't pass context around unnecessarily
Merge branch 'master' of github.com:ckan/ckan into 1617-detached-instance
Merge branch '1617-detached-instance'
[#1503] Clarify data vs metadata licenses

Fixes #1503
Merge pull request #1728 from ckan/1503-two-licenses-second-try

[#1503] Clarify data vs metadata licenses
Merge branch 'master' of github.com:ckan/ckan into 1193-deprecate-get-action-helper-second-try
[#1193] Move long deprecation message to changelog

Also add "deprecated" to docstring, needed to prevent warnings and test
fails.
[#1193] Improve doc on how to deprecate functions