Move REST implementation into this set of libraries.
Other minor fixes.