A Classification of Toral and Planar Attractors and Substitution Tiling Spaces