More code comments. Improved AJAX example slightly
Added curl-based tests for the example web app.