Refactor client creation code.
Remove trailing whitespace.
Fetch gems from https://rubygems.org.
Bump Faye submodule to 0.8.9.