Updates

* Use `SecurityCritical` attribute instead of `SecurityPermission`
* Use provided constants instead of hard-coded literals
* Update NGit submodule to fix loading of configuration files

This pull request is a prerequisite for the Git Diff Margin pull request.