add working stub server

Currently falsely assumes that a definition always has `name` as one of
its possible `identity` keys.