Wsgi support

ref #214