Apparently, when running as a script, sys.stdout might not have an encoding

git-svn-id: svn+ssh://svn.code.sf.net/p/gramps/code/trunk@23374 4ae1f11a-8b86-4847-b8af-ab372f36d1fd
Added gramps. to webapp imports (should make webapp a package)

git-svn-id: svn+ssh://svn.code.sf.net/p/gramps/code/trunk@23375 4ae1f11a-8b86-4847-b8af-ab372f36d1fd
Change for Django 1.5.4, no more redirect_to

git-svn-id: svn+ssh://svn.code.sf.net/p/gramps/code/trunk@23376 4ae1f11a-8b86-4847-b8af-ab372f36d1fd