feature #1712: Restructured scheduler main functions
feature #1712: Changed Match Resources Interface to accomodate Datastore scheduling
feature #1712: Fix memory leak
feature #1712: Basic DS scheduling in place