Use weak references in model schema store and reuse it and model rule source detector across builds.

Daemon test coverage to follow.

+review REVIEW-5313