Wave of refactoring in ViPaint.

Whitespace changes. Better comments and Javadoc comments. Correct many
mispellings. Renamed a variable and function.
Merge pull request #1 from strburst/refactor

Refactored stuff in ViPaint