Initial support for opening entities by name or id

Part of issue #354 refer to this for details.