Removes dead code as a prereq for API work

Unused imports and members, some deprecations.
Shout if you see anything controversial.
This is not useful with the `import ProjectChangeObserverTest._` a few lines below.