Aded flsh mesaging, template rendering, hooks and exception handling.