Modified the way to obtain installOrigin for hosted apps. Instead of getting it from the domain of the manifestURL it is taken from the json config file