Add repos to a project

Add the backend API and the JS UI for assigning repos to projects.
This also fixes red travis (on Jshint).