Core sessionheartbeatconfig

When session_keepalive is true (default) the heartbeat will be send as
often as the half of the session timeout value.

I've put the JS unit tests separately as we don't have the JS unit test framework on stable6 and other versions.

Please review @karlitschek @DeepDiver1975 @ser72 @schiesbn