[feat] added basic handling of keepalives
[test] changed the testing condition in order to check if the reset of event works
[feat] added resetting timer after each publish
[fix] fixed the bug offset hasn't been taken into account
[feat] added timeout for server response
[feat] added passing keepalive_timeout through connect parameters
[fix] fixed correct parameter order and quantity
[feature] added closing connection if timeout passed
Merge pull request #108 from xively/feat_add_keepalive

Feat add keepalive