Three-dimensional adaptive domain remeshing, implicit domain meshing, and applications to free and moving boundary problems