Add "Outgoing changes" menuitem

Also refactor away some menuitem creation boilerplate.