A lot of changes

Added support for page templates
Added support for standalone templates
Completed support for template options