Added some tests and hooked up travis-ci as the watch dog.

Also updated Handlebars runtime to 1.0.