[#285] Remove code in base controller that is not used in the ckan codebase
[#285] Re add function mis-used in api controller
[#285] _make_unicode() still has user
Merge branch 'master' into 285-base-controller-code-removal
[#285] Move function into only function using it
[#285] Move function into API controller as only user
[#285] Fix missing imports
[#285] Use json defined in h
309 no private datasets in activity streams, revisions, group listing and tag listings
make group_list_dictize reasonably fast by going through search index
[#309] add package count using search index
[#345] Also recognize driver `postgres` in `engine_is_pg`
Merge branch 'master' of github.com:okfn/ckan into 345-fix-pg-detection
Merge branch '345-fix-pg-detection'
Merge branch 'master' of github.com:okfn/ckan into 309-package-private-everywhere
[#309] Tidy up a couple of comments

No point in putting "TODO" comments in the source code no one will
remember to go back and do them and the comment may become outdated/misleading.
Merge branch '309-package-private-everywhere'
[#285] PEP8
Merge pull request #285 from okfn/285-base-controller-code-removal

Clean BaseController
[#299] Don't call WHERE statements if there're no terms

This removes the following warning:

/home/vagrant/pyenv/local/lib/python2.7/site-packages/sqlalchemy/sql/expression.py:1925:
SAWarning: The IN-predicate on "term_translation.term" was invoked with an empty sequence.
This results in a contradiction, which nonetheless can be expensive to evaluate.
Consider alternative strategies for improved performance.