Removes some dead code as a prereq for API work

unused members and imports, some deprecations
Merge pull request #189 from huitseeker/issue/API

Removes some dead code as a prereq for API work