Small cleanups 4

This group of changes will include a few more cleanups, and add the RQ_READ and RQ_WRITE env vars even though they will remain hardcoded at FDs 3 and 4. It will begin the transition period for client scripts. Will work on this one for the next 3-5 days probably.