Added bitflags to spells.

Also made construct UI work under the new system.