Fixes #1596 by ensuring it only shows active members.

Currently removing a user from a group/org (marking membership as deleted)
then it still gets returned in dataset/new as a viable organisation/group to
choose when it isn't (as the user is not actually still a member).
[#1457] Split test
Allows use of CKAN_INI env-var to locate config

Implements #1597

If you don't specify a config file using the -c option, CKAN defaults to
looking for development.ini in the current directory. This patch will
first check the -c parameter, and if it doesn't find it will use the
content of the CKAN_INI environment variable. If it cannot find that,
it will then default to development.ini in the current directory.
CHange error message, hope travis retests
Removes templates_legacy and broken tests

- Removes the entire templates_legacy folder
- Removed any tests that depended on the legacy templates, these are
  mostly in functional.
- Added a warning to update_config() that genshi support is deprecated
Merge pull request #1457 from ckan/1457-super-important-fix

Fix incompatible test in new_tests/logic/action/test_get.py
Merge branch 'master' into 1772-delete-legacy-templates

Conflicts:
	ckan/tests/functional/test_package.py
Merge branch '1772-delete-legacy-templates'
Merge branch 'master' of github.com:ckan/ckan
[#2037] Make resource_create auth work against package_update

Right now it was deferring to package_create, which doesn't make much
sense. Basically if you can update this particular dataset, you should
be able to add a resource to it. Added auth tests.

Also fixed the authorization for resource views creation. This is being
fully tested on #1852
[#2037] Fix logger call to allow warning on tests
[#2037] PEP8
[#2037] Don't remove package_id before resource_create auth check

I didn't find any good reason as to why it was being done, and it
prevents `resource_create` auth to check authorization against the
dataset.

Added action tests
[#2048] Upgrade repoze.who to 2.0
[#1597] Refactored for code clarity and improved error message.
Merge branch 'master' into 1596-dont-show-deleted-members
Merge branch '1596-dont-show-deleted-members'
Merge branch '2048-upgrade-repoze' of https://github.com/brew/ckan into brew-2048-upgrade-repoze
Merge branch 'brew-2048-upgrade-repoze'
2054-fix meta property og:description

fixes #2054 by trimming whitespace