Adding simple user authentication

The user database will be created if doesn't exist using
the SQLALCHEMY_DATABASE_URI parameter in app.cfg. Just
tested with sqlite. Use absolute directories in this parameter.

The passwords are stored with sha1 in the database. To create
a password with python just use:

    import sha

    print(sha.new("Your password").hexdigest())