Changes to the user interface and internal logic.

Added class PageHandler, which is responsible for displaying no administrative pages. Added basic entities and their methods.Changed the name of the constructor for smarty. Implemented template inheritance.