Switched to lazy bytestrings, added some pattern matching to HTTP handler