Controller code deduplication

Moved common code to shortcut methods on ApplicationController and changed all resource controllers to use these.