Initial implementation of Ring middleware.