documentation on commit messages

per request from @fanquake
- expand existing content in `CONTRIBUTING.md` and break out into section
- add section to `HACKING.md`