Implemented back button functionality for Android

Plus misc stuff