Migrate bin/run from `run` repo

This is unfinished rewrite of `run` in Perl.