retab, remove trailing whitespace.
pep8 and fix some style technical debt.
Store user primary key instead of the whole user instance in a session.

This fixes #3 and horrible decision I made in the past.
Add requirements file and travis config.