Added result and error messaging output.

Using handlebars js for templates

Controller still needs tests