Clean up use of localStorage for comet connection sharing