create system tables

+ bugfix: coredump if program exited before loading plugins
create system tables
Merge branch 'master' of github.com:oakey-dev/moonitor into dev