Implemented express view engine support, refactored code and added more tests.