Users can log in with their email.
Merge pull request #303 from ngodfraind/logging-with-mail

Users can log in with their email.
Changed session default lifetime
Merge pull request #305 from stefk/session-lifetime

Changed session default lifetime
Just factorisation of query and query builder creation
Just factorisation of log repository creation
Create mocked object once in setUp method
Using created variable in test class
Factorisation of the queryBuilder creation process
Minor CS update
Merge branch 'master' into badge_log_event
Minor CS update