Initial jitterbug implementation, and fix for #15 memory leak