[api] first step to make project status in the webui more reasonable

adding a /webui/project_status route that is taking only the part of the
/status/project route that is interesting for the webui and outputs it
as JSON

To do this I had to refactor quite a big part of code and also optimized
it here and there