Use @project on controllers, don't call method

Also memoize the method to ensure that other methods in
ApplicationController that rely on it can call it efficiently.
Merge pull request #8102 from cirosantilli/use-memoized-project

Use @project on controllers, don't call method