added typescript() register method.

Added typescript() register method, as well as a IOSyncHost to
synchronously resolve the module.