Implemented topsort for determining load order - this wont work for
cyclical stuff