Added p4_client_write functionality, moved getting git repo top dir to separate file