fix restart; refactor connection checks; add pinger to rtmp_manager; only one net connection; js api client; fix some bugs