implement branch_restrictions api.
Merge pull request #14 from hirakiuc/implement_branch_restriction_api

implement branch_restrictions api.