Moved code, added plugin demo

- Created basics for plugin loading / message handling
- Categorized subroutines and moved some to another module
- Editted the way incoming messages are assigned to scalars