Adds atmosphere dependency
Adds login and logout listener to track online state