FIX MAJOR bug when SessionData.getLastOpenedProject is not reconficured after openning a sidebar link

Move a routine that saves lastOpenedProject from
OpenWorkflowForRoleAction to the Sidebar code. This should fix issues
with apps and links looking for lastOpenedProject instead of
selectedProject .