Move EndpointStructureLogger from util/ to device/
Previously the util/ endpoint would import virtually the entire library
because EndpointStructureLogger has many dependencies. This caused trouble
for code generation because it uses some of the files in the utility package
which is otherwise largely independent of the rest of matter.js.