Fix crash when trying to login while not connected
Convert MXA application to Android library (MO-245); adapt XHunt accordingly