Fix various webapp issues.