Removes dead code as a prereq for API work

Unused imports and members, some deprecations.
Shout if you see anything controversial.
Merge pull request #91 from huitseeker/issue/API

Removes dead code as a prereq for API work