Adds layout templates
Merges page and popup layouts
Replaces includes of header and footer to inheritance of layout
Merge pull request #258 from maciejlew/master

Adds "on load" hooks to modules...
Merge branch 'smarty_template_inheritance'