Fix the SSO cookie parsing code.
Unit tests for the view samples.
Merge pull request #1103 from markewallace/SSOEndpointFixAndViewUnitTests

SSOEndpoint Fix