# Functions
CreateSession creates a new session - called after login with correct username / password If sessions parameter is nil, it will be loaded from config.
IsValidSession checks if the user is submitting a valid session token If valid session is found, useSession will be called Returns true if authenticated, otherwise false.
LogoutSession logs out user and deletes session.