Use method queries instead of GQL
Redirect if not logged-in. Minor changes for grader.