Resolved issue with tornado 4.0.1 (incompatibility between existing and custom http1connection implementation)

Compare #544 and #546. Pinned tornado version to 4.0.1 (since the change in this commit is not backwards compatible), dependency update is mandatory.