created logout functions in FirebaseAdapter and MobileController to close connections, stop listening to the accelerometer, and remove data from the active Firebase tree
added event listener inside the MobileController for the logout button in the app