Redirect log to stdout
Move header/footer out of error/sucess templates
Add a test for sqlite3
Give default values to action.success and action.error