952 allow push by owner permission

Shall fix #952.

Includes tests for the new scenario, the actual fix, some useful refactorings, some rspec-deprecation fixes and
code that is a little bit more resilient.