push analysis handling into project-map.js

was previously just in project-analysis.js
will need to use this from project-cleanse.js