[Reviewer: Rob] Implement new cassandra_store framework

Most of this code is based on the homestead cache. It might not be worth reviewing in massive detail, as I've not changed the interesting functions that interact with cassandra very much.