[backend] add a "hasbuildenv" flag so that the scheduler goes into "localrebuild" mode
[backend] cleanup patchproductkiwi a bit
[backend] fix buildenv bdep generation

There was a bug that made the bdep names contain the .rpm suffix.
Fortunatelly we can easily workaround this when reading old
buildenv files.
[backend] Refactor bs_publish and bs_repserver notify function into BSNotify::notify

This removes code duplication and adds some clarifications how the
notification mechanism is suppose to work. Obviously the source server
itself should not call BSNotify::notify.

Signed-off-by: Jan Blunck <jblunck@infradead.org>
[backend] Move generate_commit_flist to bs_srcserver

The function is only used in source server.

Signed-off-by: Jan Blunck <jblunck@infradead.org>