Changing response code after session creation from 302 to 303, as stated
by https://code.google.com/p/selenium/wiki/JsonWireProtocol#POST_/session
. Fixes issue 1714
Replacing sleeps with waits to make grid tests more robust.