RE-implements RestApi shell class lost in previous git-flub; some TODO's remain to be filled in so this is not yet ready for use, but wanted to capture the code before I lose the dang thing again