Keep alive support for remote selenium testing

Enables keep-alive support and thus improves performance of selenium tests running on remote machines.