Better use of callback
Make spam server a global singleton

I was trying to pass around the spam-tester object as a property of
app, and it was too much of a hassle, so I just made it a global
singleton.