added basic spell table
added cost and type columns to spell table
added verifier for spell record
Terrain material now uses multiple passes if required, which means it can support an arbitrary number of layers. Also re-enables PSSM.