Includes fixes to #5 and #6 (test cases included)
This fixes #9. This will remove the settings saved in DB when plugin is uninstalled.