Add online ping request

This ping must be send to hold internal web socket association
Allways send JSON Accept- and Content-Type header
Minor code cleanup