add try-catch block for cross-script permissions

This commit adds a try-catch block to deal with the situation
in which opengamma is being called from another web page.  In
this situation, the cross-scripting permissions block access to
the parent window object, leading to the OG gui not rendering.
check if opener is an og page

Check to see if window.opener is an og page before skipping handshake.
Without this page, the OG GUI will fail if called from a non-OG page
via a web link.
FixUp PR
Merge branch 'origin/develop'
Merge branch 'joequant-routing-fix'