class detection.

Basic `class` feature detection.
@dead-horse Added `.editorconfig` so this won't repeat.