determine the messaging token from the cookie, if nothing else works
cleanup