Distributed cache

Implemented better caching, scalable writes, and multi-threaded training and classification on text. Pretty sure I'm done with this thing for now. Time to write some blog posts!