Change get_cursor to get_transaction

Keeps up with latest postgres.py API changes:

    https://github.com/gittip/postgres.py/issues/20
Change zero kw to default

Keeps up with latest postgres.py API changes:

    https://github.com/gittip/postgres.py/issues/20
Improve log display of anonymous users
Fix regression in user sign-in