Provide demo webapp for CAS protocol integration.

Fix bugs revealed through development and testing demo.