allow specifying link_callback

It would be nice to be able to use a different function than the default fetch_resources as link_callback. This patch allows for that.