[DEV-12] Honor DNS ttl in jsonrpc module 

The algorithm for SRV refresh is complicated and inefficient, but it seems unavoidable and necessary. I'm definitely open to ideas on how to improve it.