Merge branch 'tristan/reorganize-project-context-init' into 'master'

Reorginize some __init__() functions

See merge request BuildStream/buildstream!1961