#1581: sends back thanks to Javascript protocol the heartbeat interval and the padding text for client
#1581: configures the heartbeat interval for client and intercepts
Merge remote-tracking branch 'origin/master'