_ensureInstallable modification + code cleanup

_ensureInstallable now delegates to AppsUtils::checkManifestContentType
to see if an app is installable. _ensureInstallable also needs to check
for http:// in order to prevent non-hosted apps from returning installable.