Factorize code and begin of remote Ocsigen_brouette module