layout: Remove the old box builder and the useless `doc_url` clone
Remove some unused imports
Send layout data back to the layout task to be destroyed when nodes are