Shift `netty` module to depend on `core`.

This required moving a good number of header definitions to
`core`. I'm considering these to be "core headers" but the distinction
is pretty arbitrary (stuff we used to make the netty binding + other
stuff that was intertwined).
Shift `uploads` to depend on `core`, since it can.