Improved back handling for the mobile application

Apart from the odd workaround related to search/locate and the layer chooser, the back buttons should now better mimic the behavior of a standard Android application.