Extracting Orcid::ApplicationController

And corresponding common logic.