automatic redirect

fixed auto redirect for logged in users and cleaned up a couple of
deprecated android APIs