CsnAuthorization on steroids

Hi, another PR with huge changes and reworks, please review it first.