Fixes to allow playback in background, to allow debugging (mediacontroller show() was being called before the View was visible), and to destroy the mediacontroller at the correct lifecycle stage