Merge pull request #1640 from OCamlPro/git-fix

Attempt to simplify and sanitize git handling
Rename src/scripts src/tools
Move some general use functions from OpamState to OpamGlobals
Fixed color handling wrt env vars
Two more functions in OpamFile's API
Fixed dose package dependencies for ocp-build
Added opam-publish tool