STILL BROKEN BUILD: still refactoring handler logic to be independent of thrift sever logic.