(bug4062) readd auth bits

Revert "(bug4062) Remove auth bits ( to move into another branch )"

This reverts commit 8e497c9577d65eeb22a9ea31c8c7ef7e890cc7d3.
(bug 4062) readd bits

Revert "(bug 4062) More stuff related to authing"

This reverts commit 08b059a67391c66851ac912e0aae0db76250031f.