Least used scheduler task scheduling.
Merge branch 'gatewayDistFix2' of https://github.com/Starcounter/Starcounter into develop