rest-gen: Expose Rest.Gen.Base.

Some of this is needed to move the documentation serving out.
Move documentation serving from rest-gen to rest-happstack.

Ideally this would be framework agnostic.