[webui] More verbose search results for packages/projects
[api] handle removal of repositories which are defined as release targets in a correct way (fixes database corruption)