adds AuthMessage and fixes browser tests

needed for new insight message broker module.
Credits to @ryanxcharles who wrote this class