* add common-prefix util and use it in the list controller * add test * browser js for in-repo dirs * address PR feedback