Rate limiting with token bucket.
Removed debug code. TokenBucket thread is now a daemon.
Merge pull request #3 from mrchris75/master

Looks reasonable.