Core: track spell sources.

This allows to easily get version information about a spell.