documentation on commit messages

per request from @fanquake
- expand existing content in CONTRIBUTING.md and break out into section
- add section to HACKING.md
Merge pull request #2475 from rolandwalker/doc_commits

documentation on commit messages