Dispatch and init changes for Cowboy.