Refactoring code, added spring security, added spring login

Signed-off-by: Victor Zagnitko <victor.zagnitko@yandex.ru>