Add stdin middleware.
0.8.123