-. small fixes for authentication;
-. repositories replaced with services to avoid exceptions due to missing transactions.
Merge remote-tracking branch 'origin/master'