Move guess_repository_kind at the right place
Split OpamMain into two pieces

OpamArg holds the command-line flags, and OpamMain just call the final function. This is useful to easily create alternative binaries using the same command line arguments as OPAM.
Remove spammy debug messages