Allow the templates_path to be set

ping @BanzaiMan :)