feat(library/rewriter): add skeleton for depth rewriter
refactor(library/rewriter): have separate functions to build RW results from components
feat(library/rewriter): add apply_rewriter_fn skeleton
checkpoint for rewriter
checkpoint