Merge assembly_pipe tools and build_dir tools

Working versions of assembly_pipe and build_dir tools.