Needle editor: change needle name when selecting tags

Alternative implementation (with most logic in the controller) to https://github.com/os-autoinst/openQA/pull/54