Added strong/weak reference checking.

Replaced addOperationWithBlock with  dispatch_get_main_queue,
changed looking for WIFI to looking for MITMobileWebGetCurrentServerDomain()