Added methods to protect and unprotect branches in from the API

Provides methods in the API to manage protected branches. See documentation for usage.