Added testcase methods 'is_https' and 'isnt_https'

These methods use remote javascript to check the connection type of
the page, using the value of window.location.protocol