Move gh-book specific path code to config.

This means the copy plugin CAN do image path translations, but will only
do so if it has been configured with a method for determining a path.
Merge branch 'testing' into copy-plugin-sprint-fixes