A Theory of X and Z Multiquark Resonances