Modularized and encapsulated all of the REST communication into the ModulesClient class.