Implement methods to get branches in a repository (re #120 and #123)

Add a new mock method to create branches on an existing repo
can you remove this blank line?