Implemented  to_commit_info()

- Implemented to_commit_info()
- Renamed pull_requests.py to sha.py and subordinate tests
- Fixed a few more bugs, that I found.