Started to write a service that uses $resource to invoke the NameList RESTful service