split repo-* compat into a different file for now

Not a permanent solution. Just to reduct the number of lines of code in
repoman.c so I can read it better.