init.php: Add APIs for all init functionality
init.php: Add documentation functions

Issue #106.
template.php: Minor function rename
template.php: Prefix private function

Issue #107.
error.php: Prefix private functions
init.php: Enable strict errors on debugging
template.php: Add a TemplateException class

Issue #101.