added wsgi handler copied from bottlepy.org