First steps towards authentication

Signed-off-by: nox <dimasavitski@gmail.com>