update B2G/Gaia to 2013-07-31 tips of b2g18-simulator-integration/v1-train-integration branches