Add check_availability method to connection

Allows scripts to wait for Nexpose to accept logins before continuing
is this double if wait just to save 2 lines of code? cause this is weird to check a condition twice if it won't change between lines.