SAK-27780

Move most of the JavaScript procesing to after the tool markup
has ececuted.   We still include JQuery 1.9 and the compatibility 
library before tool markup for non-inlined tools (i.e. JSR-168
tools).  The post-tool JavaScript automatically checks to 
see if JQuery 1.9 was loaded either by the portal head,
tool head, or tool body, and then uses that jQuery.  If there 
is a version prior to 1.9 loaded (likely by the tool body), 
it is unloaded and the portal loads a fresh copy of 1.9 after
the tool markup.

This finds the middle path.



git-svn-id: https://source.sakaiproject.org/svn/portal/trunk@311707 66ffb92e-73f9-0310-93c1-f5514f145a0a