Make session handler implement native SessionHandlerInterface

In 5.4 there's a formal interface for session handler code; projects such as Silex won't accept a session handler that doesn't implement SessionHandlerInterface.

I've added a hack so that 5.3 will define an empty interface.