Test flow control.

This also fixes a couple of bugs I found while I was testing this, such
as the fact that the server should always send a SettingsFrame.