Add lintmode. Refactor plugins.