added restFactory that does the call to the backend.
i have added it to all the controllers. if you create new ones
just do the same as others.

the rest calls will give you promise. a working example is in
smoothieListPersonal.js