Added view engine (EJS by default, configurable), fixed bug where app would log even if not needed. Added missing tests.