insights: migrates global insights and dashboards
Created by: CristinaBirkel
Main progress here is that it will now migrate the insights and dashboards from the global settings row. Other notes:
- Moved a bunch of stuff into a
discovery.go
file to be a bit more organized. I copied (often to slightly modify, other times just to have access to without changing anything elsewhere in the codebase,) a bunch of stuff from the discovery and insights packages, and this is where they are now. - Removed the code that was creating the job rows in the codeinsights-db, because those are now being before this migration even starts.