Added parameter support to the repository.branches() function

Pull request for issue #23.