Add default branch, refactor git logic

Feel free to merge this in or not, but I modified a bit how the local git logic works for creating the testing branch.

Also, I've added the ability to specify the default branch for the repo in the config file, but still defaulting to master.