use the latest plugin api, and add the matrix plugin dependency

the matrix project is now a plugin - add it as a dependency