Make WSGI interface more pluggable; switch running time from mean to medium