Fix auto-magic Need API functions, remove "retrieve" method from Need BAO, add Project API.

I thought I made this pull request earlier, but it doesn't seem to have made it over to the main project...