move code for local branch name into function
better error message for repo name clash
fix bug caused by args revamp
add optional tree_dir arg for init command
make init switch into default local branch
rename config files (backward compatible)