[api] support autocleanup of projects.

Can be enabled globally for ~:branches: projects.
Opt-in and Opt-out per project is possible by adding or removing the OBS:AutoCleanup attribute
[api] split the perform function for PCACR