Create merge button directive

Also handling how issues are closed and reopened, now updating
the sidebar automatically when an issue changes state.