minor improvements to cookie utils
better redirect and cookie handling
add more utils
add cloudos auth hook into every app
fix mailbox creation, improve auth handling
fixup auth handling
overhaul app sign-on handling. cookie handling is now much more resilient.