update angular factory to make use of new sockethub-client lib