title: How to do some code before get() and post() are called?
body: <p>Basically what I am trying to achieve is check if user is logged in and if he's not he shall be redirected to the /somepage. I am trying to make it by creating a class that extends webapp.RequestHandler and later in code just extend that class.
  (something like beforeFilter in cakephp)
  If something isn't clear I'll explain it :).</p>