Quantum Phases of Attractive Matter Waves in a Toroidal Trap