Plugin system: add an ability for registering a plugin as a global message receiver. Fix $s command. Close #59.