Migrate to using an ORM, addresses #446

These changes migrate gittip from using SQL via psycopg2 directly to using SQLAlchemy's ORM instead.

Relates to #446