Added some exception handling
some logic for token handling, authenticate user per password and return token, ...
Fixed a lot of sonar issues, source code formatting, duplicate
strings,...