login_required decorator

Added a login_required decorator that checks if a user identifier is present in the current session, and redirects to a given URL if it is not present. 

Also fixed the handling of default values of various session/cookie/redis parameters. Previously, although the code used defaults, it required specifying them again explicitly in the config file. 

Added a unit test.