Introduce inactivity timeout

The pull request introduces a property called `inactivity-timeout`, a timeout that checks the duration of inactivity of TCP read / write.

IMO the pull request covers the requirements of issue #37.