Added IGDigest library.
Allow DeviceId to be constructed with an NSData hash.
Ensure that connection only succeeds when TLS succeeds and device id checks out.