Jar_cli: abstract cookie -> token parsing and repository lists into a CLI module

These are useful argument parsers for a lot of tools.