linting.....
changed Linter.lint to return a promise
added use method to linter for plugins