fixing bug tornado.gen related bug with logged-in users, and typo in viewproject
Merge branch 'trunk'