Ping the plugin URI (checking status of the head)
Start a loop to ping, if ping is OK return immediately, else start a new ping after 1second. We iterate for the given amount of loops provided in remainingCount
the number of occurrence to check
resolve function if ok
reject function if error
Checks that the
instanceUri
is responding before exiting method