Rename to be more descriptive and take a project object.

Retain and deprecate the 'relative' function.