Cleaning up and refactoring the factories.

Signed-off-by: Jason Lewis <jason.lewis1991@gmail.com>
Added handlebars file extension. Closes #167.

Signed-off-by: Jason Lewis <jason.lewis1991@gmail.com>