QuickBlox session handling and bug fixes related to session