Re-arrange files
Fix bugs
Fix page renderer
Add default page template
Add template script functions for headers