package.loader: add extra_branches method
This method allows to add extra branches before creating the snapshot.