mod_bosh bug fix and new parameter

Two mod_bosh related commits:
The first fixes a bug that causes clients to be erroneously disconnected under certain conditions.
The second adds an additional option that allows the BOSH 'wait' parameter to be limited so that it cannot be higher than a specified value.