Moved common functions out to an include for reuse. Added
release/missing functionality for site detail page.