Port project_ref plugin to bst-plugins-experimental

Upstream issue: https://gitlab.com/BuildStream/bst-plugins-experimental/-/issues/24

It is not clear to me if this wants to be ported like for like or if the features want adding to other things, this is sort of dependent on where the core local plugin ends up and if anyone is interested in adding some of these features to it.

Edited by William Salmon