committing pre rollback to fix handlebars
added middleware support, commit pre test suite