[api] support to use a different project for repositories on branching.

This allows for example to build maintenance updates always against :GA projects instead
of :Update by default. Fate #308788
[api] create secret key during rpm package installation and use it.

It was only created on the appliance before.
[api] ensure existins of "deleted" project and repository on update