Refactored branches a bit and make listing nicer
Fix bug where saving a new revision didn't take one to the new revision.