Build tools: handle correctly several build views

There can be several main windows, each with a build view.
Before, at most one task was supported per BuildTool and BuildJob, but
it doesn't work well with several build views (showing/hiding the
details worked only for the last task).

Now GTask is used more correctly, so a BuildTool and a BuildJob support
several tasks.