fixing toJSON of chrome options where equal options become unequal.
Do not pass sessionId if it is not exists

Signed-off-by: Andreas Tolfsen <ato@mozilla.com>
Promise.thenFinally should not suppress the original failure.

Fixes issue 7156.
Support the `done` callback in Mocha's BDD interface.

Fixes issue 7277.
Preserve response status code when translating from internal to servlet API