Added support for additional SSO parameters + documentation.
Merge with rajsubit's simplejson->json fixes.