erp5_web_project_ui: refactoring in queries and html document parsing

- test extended
3 jobs for master in 0 seconds
Status Job ID Name Coverage
  External
passed ERP5.CodingStyleTest-Master

01:06:53

failed ERP5.UnitTest-Master

02:15:05

failed ERP5.UnitTest-Master

01:37:12