Add NestingDepth linter

Fixes issue #246. Please review. This is my first attempt to add NestingDepth. Feel free to test and suggest changes.