Added lots of web context logging code; as yet untested. Much more efficient basic logging case with concurrent queries. A few schema updates to clean things up.