Client build: modularize mode-button plugin from ui.js; update history/multi-view.js and history/view.mako