Make authentication in 4 steps.

Unfinished work.
Add Crypto++ as dynamic library dependency