Fix typo in renderer implementation

Fixes #1003
Remove unused vim import
Fix syntastic warnings in powerline/__init__
Add tests
Merge pull request #1004 from ZyX-I/fix-1003

Fix incorrect include/exclude_modes handling