Added option to set keepAlive interval.

Signed-off-by: Davy Vanherbergen <davy.vanherbergen@gmail.com>
Merge pull request #1402 from dvanherbergen/mqtt-timeout

Issue #980 : MQTT connection gets stale / does not refresh