Added button to settings page to purge data locally and on API.

Added uninstall function that purges API and drops tables