Automatic code cleanup

Just did some formatting with Eclipse's formatter and clean up tool.
Code should be more consistent and readable, and many of the warnings
should be gone. The cleanup also added serial version IDs to many
classes, so please don't delete those. It's better to have them than put
the suppress warnings tag in.
dbeckwith