split Request.hs, fix doctests
reduce exports, organize tests