Split devtools implementation into sensible modules.
Documentation and TODOs.