Add FixProblem and JavaOptimizeImports commands

Also tweaks setup handling a bit to more successfully handle
filetype stuff