#4 - Added tests. Major refactor of spellbook. Sorting moved to the spell view.