Enhanced the Spring Security handling code to work better with SSO plugins

The return URLs for SSO plugins now also supports the query String
Fixes https://github.com/the-fascinator/the-fascinator/issues/49