Refactor of cookies->Authorization protocol
update documentation