add git post reading and typecast to xml

typecast the xml settings so php can handle them
stop if our branch is not the branch which is updated
delete the git deleted files in a nice way