initial checkin.

integrating with entity registry for entity
creation and retrieval.
added a clearAll function. Reorganising opening/closing
added schema for componentDef table and component
default.