Added a system for plugins.
Stern Gerlach plugin now works.