Tidied up Java compiler warnings.

Added JavaDoc comments, with TODOs for now as code structure not final.
Removed some unused code that required an eGit extension.