Fix various problems in current PY3 WSGI implementation (Currently Non-operational)

Change addresses:
- strings not being encoded before sent
- missing attributes in PY3
- bytes not being decoded after received
- headers_factory had wrong amount of arguments
- PYWSGI tests failing

bump version, 1.1.1 all PYWSGI test pass now.  Integrated with fantix's pull request for the same.
`_get_memory()` is used by `sendall()`.
Calling `to_wire()` in `_get_memory()` is bad idea because `sendall()` should not accept unicode.

```python
    def sendall(self, data, flags=0):
        memory = memoryview(data)  # raises TypeError when data is unicode.
        if self.timeout is None:
            data_sent = 0
            while data_sent < len(data):
                data_sent += self.send(memory[data_sent:], flags)
...
```