Router changes, add signal management, add smarty engine for templates, add db\fields. add the beginning of test framework