restyle as something resembling bsd knf
use err/warn family in preference to fprintf
postgres room storage, rm ugly portability code