Add ability to approve commits via API calls

This adds the ability to approve commits through API POST requests.