tests: move flip_bit to common.py
util.remove_prefix: add errortype=
retrieval protocol: add encrypt/decrypt functions
server: sketch out non-local message acceptance, filing, and retrieval