#660 - Successfully extracted the restful webservice out of the directive and moving it to the template editor controller.