added runtime connection handling and background pings

added runtime connection handling, enabling automatic reconnects
added recreation of runtime stored procedurs for new connections
added watchdogs keeping connections alive using ping queries and
dececting disconnects