Add check_availability method to connection

Allows scripts to wait for Nexpose to accept logins before continuing