Bug 1023179  - Fix video unloading/loading, refactor initialization

Refactor of initialization sequence, logging to track down media loading issue
please name the function for better readability (yep, apart from the comments :smile:  )