Made createWidget and registerChild together synchronous atomic operation (it was async before) to eliminate widget tree inconsistencies.
Merge branch 'master' of github.com:cordjs/core