Added scratch code validation and removal (on success); added DELETE verb; fixed stuff
Updated database configuration to allow for a setup flag, as opposed to purge.
Moved function for readability; added new response type for status endpoint.
Updated to allow for new database setup flag.