MDL-46711 session: add support for multiple servers to memcache session driver

Includes OOP coding style cleanup.