Fix install issues with content access and apps, and move to .install so code isn;t loaded every page load