Fix #6105: Javadoc html errors.

Warnings and content are left as is aside from one spelling mistake in
an exception message. Project file extensions from IDEA and swap files
for vim are also added to gitignore.