Minor refactoring to catch more exceptions
Doc update: this can also be used for P4 -> Git
Renamed git_to_p4 -> git_p4_sync

This is because this script can be used for two-way synchronization.