add interface+docs around resource factory

re following official "Wire up a BAckend" demo:
http://angularjs.org/#mongolab-js