fix run and send_query functions
Merge branch 'master' of https://github.com/blasterbug/Octochat
fix handle_check_version and add log