added a basic base handler class called Handler, and modified api.py to ...

...use it. also added jinja2 imports in the app.yaml file