refactor scheduler code and add a test
factors out most of the changes in !1526 (closed)
- refactored the scheduler code
- added a test to check the proper execution of lazy and nonlazy composite nodes
- some minor on the fly changes..
@cattanem unwip as you like
Edited by Marco Cattaneo