Make sure the project-file environment variable is set

Woops

Add projects.json to gitignore

Fix more stuff with the projects.json var
Fix the frontend bug with duplicate click listeners