[#1721] log the user in programmatically after registration
[#1721] pep8
[#1721] leave username as unicode string

Fix so old user tests pass, not that we allow unicode usernames anyway
[#1766] Don't show 'add some resources' link if not auhtorized
[#1766] Check access on new resource page

Add auth check to the `new_resource` action on the package controller so
the form is not shown to unauthorized users.
Merge pull request #1766 from ckan/1766-resource-create-link

"Add some resources" link shown to unauthorized users
Merge pull request #1721 from joetsoi/1721-login-after-userreg

Programatically log user in after registration