Add the purchase history page to settings and delete it on plugin uninstall

Fixes #1964