job storage refactor

+ initial work on thrift