Improve troubleshooting routines

Makes `powerline_troubleshoot` from Vim run linter and also refactors `powerline.lint` module that was the largest file in the repository as indicated in #1083.