Files can be referenced relatively by projects

When adding a file to a project by reference, the user can choose to use the absolute or relative path of the file. Also added a better dialog for choosing between these options.