Add matrix project support.

This patch now allows to import matrix projects.