Adding the handler for promotes and defcomp transactions.
Adding git repo initialisation code. Writing errors is now done on stderr instead of simply printing them.