move session memstore to its own .c