Move CSRF token obtaining code to login.cpp

The token used in various queries is now taken from project configuration.
Follow-ups #126.

I know that the GCI task is closed already, but I improved it as you, @benapetr, mentioned. It looks that obtaining CSRF token once, at login actually works. :)