Fixed expired() uninitialized complaint on valgrind.  Also fixed a JSON memory leak.  (untested)
Added various things to the receiver.