Remove unused API method references
Remove unused variables from unit tests
Remove unused internal variables
Disallow unused variables
Remove aliases for exported methods

Prefer accessing these methods via the global `module` namespace for
clarity.
Merge pull request #533 from jugglinmike/unused

Remove unused variable references