Fix URLs for events; navigator.id before socket

 - Fix the URLs for Event and SearchIndex to not double-prefix
   application names.
 - Add messages to explain onogin requirements
 - Wait a little while for sockets to appear before throwing an error
   when navigator.id's onlogout/onlogin are called before the socket
   is ready.