Refactor module methods into instance methods for thread safetry.
Merge pull request #1 from mje113/master

Make feedbag threadsafe.