Logins broken with session error.

Following Flask Mega Tutorial. Module structure not quite working the
same, needed to put everything in the app folder. Getting object in
session 1 (this is 2) errors with the user login system.