update sample apps to work with cowboy 0.9.0