Make the Riak integration fairly generic, will move application logic to a separate project