Warning cleanup

No functional changes.  Gets the warnings down to about 280.  Mostly unused imports, missing defaults in case statements.