Registry Implemented, DB Connection moved, Smarty3 implemented

A registry has been created in the main Layer class. This holds data
and classes/services, and can be used by Frontend, User, Controller,
Model.

Database connections are created once and stored in the registry,
unlike before.

Log output can now be reversed.

Smarty3 implemented, with a version option in config.ini

AJAX calls properly handle the pre/postDispatch functions.

Null arguments/params are handled properly in actions.

A lot of commented code.