Move lint output to cmdline

This is a first pass at creating a linter API tha thte cmdline
code uses. Now the cmdline handles all the printing to output
and the linter handles all the linting.