Moves engine declaration into explicit file.

Adds helper functions for stylesheets and javascript to ensure child
views declaring a stylesheet or javascript requirement are appended.