Feature/regression testing

This fixes compatibility with twisted 12.2.

It also adds integration tests for compatibility with all the releases of twisted up until 14.0.