make flash msg and menubar rendering a plugin
clean up a few things
pass in messages to flash msg plugin
system changes (from github)