common/hooks: add support for do-<phase> hooks as suggested by Gottox.

- New hooks for do-fetch and do-extract moved from xbps-src.
- Renamed some hooks to have XX as prefix.