Third round of refactorings:
* Implemented class autoloader (not PSR0 complaint at this moment)
* Got rid of loadPage() methods
* Greatly simplified template's logic
* Improved error checking