Added session_keepalive setting

When session_keepalive is true (default) the heartbeat will be send as
often as the half of the session timeout value.
Added unit tests for session_keepalive / heartbeat
fixing typos
Merge pull request #7067 from owncloud/core-sessionheartbeatconfig

Core sessionheartbeatconfig