Update cowboy to 0.9.0. Fix some type errors. Fix cloudi_runtime_testing random usage.