Fixed saving replayed entries.
Factored out pidlock, tests pass.
Allowed spawning with Faye. Confirmed Faye works as a lock.