Do some major rework introduce struc holding configuration for session. Make public key auth working.