Changed getNewCommits in restAPI to be a GET with query parameters
Added sending the branch to the restAPI
Updated tests to use new paramters (Will need to add more tests for testing the branch)