Initial work to allow for embedded KB (ie, not remote connection)

Events are not yet supported.