Added state machine to AutoJoin to start the correct activity depending on context
Store the currentGid in SharedPrefs, also added the new leave group for a particular group