interrupt safe file write
make storage configurable
postgresl storage backend, with tests
remove dev pprint