2044: Improve reporting when project sharing fails.

Our select modal knows how to render an errors key in the JSON
response.  This commit adjusts the project controller to conform to
this convention.  Refs #2044, #3200.