More fixes for the add and remove functions in the admin interface.
Allow for enabling/disabling of Flask debug mode via the config file.