Add de-duplication button.

Also untested, just hot-patched into the existing install to test.

See ying17/rpleditor#3