Removed fairshare calculation on nodes
Scheduler rewrite

- nodes are now pre-filtered
- nodes are now properly sorted according to current state
- few memory leak fixes