Fix broken getSession function
Refactor login method

to return if a particular user is an administrator.
Merge pull request #6 from tobiasmuecksch/master

Refactoring regarding user factory implementation