Added complete implementation of async initialize.
SDK samples converted to use synchronous initialize.