Integrate scheduler impl that previously resides in different repository

Moved from https://github.com/heiko-braun/metric-scheduler