Allows configuration of session and flash middleware components of batteries middleware.

This resolves issue #68.