Added addRequestHandler to preprocess requests with a callback that might return a deferred. This allows for session handlers that store data in a database.