added last_message_index to get_running_info, and API rpc function now utilizes connection keepalive