Added mysql session store and refactored clustering.