Added rules exported from Sonar.
Added conf file for mercurial.
Reformatted rules files.