Removes dead code as a prereq for API work

Unused imports and members, some deprecations.
Shout if you see anything controversial.
The `val` is not used, but the observer is. It help reduce the time of the test. Without it, the `latch.await` a few lines below will block until the timeout, and likely blocking the test for no reason.