Major overhaul of authorization and loading external images in order to support working as a chrome app