Add check_availability method to connection

Allows scripts to wait for Nexpose to accept logins before continuing
I could probably move `if wait` to happen before checking the response location to accomplish the same thing. If wait isn't set, then there's not much point in checking the location anyway.