Made GitSync a big object.

Added lots of "self"s, and some __init__ things.

Only slightly tested with repos that were already setup. Not tested with repo from scratch!