More work on magic rules

You can now choose a magic user type and priority on first creation tab.

Magic is calculated in attribute tab.

Minor flow fixes-