Ban and logging support

I added support for specifying a logger (see https://github.com/icco/Agent355 for example). I also added ban support, but I haven't tested it yet. 

I added a clean and build_gem task to the rake file.

I also made a few small bug fixes.