Fixed branch creation.
Fixed created branch upstream setting.
Added checkout on clean when --createBranch
Added logging
Fixed bug aroudn checking for clean
Fixed order of operation with checkout
Fixed bug for detecting if working directory is clean