Abstract the common proxy logging functionality a bit.

Also cleanup the log hashes in redis after successful indexing.
Refactor things so a cluster of node processes can be launched.