Changed spring version, fix spring security, refactoring code

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