Refactored the datastore to an interface

Redis is just one of the implementations