Better idea: autotimestamp inside of pgtime()
Factor out postgres protocol util.py
Factor out messages.