document model dependencies

Added dependency (namespace) checking so that models get installed in the correct order.

(extension with model A & B where B imports A)