Remove unused modules.

Found by running JSHint with "unused": "strict" in the Source directory.
Merge pull request #1307 from AnalyticalGraphicsInc/removeUnusedModules

Remove unused modules.
More clean up and fixes found from added tests.
Add more tests.
Merge remote-tracking branch 'upstream/master'