Convert context config to object.
Refactoring entity handling.
Bug fixes.
Kill vestigial entities module.