creating branch templates and maintaining the dirname when the branch's slug field is changed.