* adding copyright header * fix fmt and a test
* add common-prefix util and use it in the list controller * add test * browser js for in-repo dirs * address PR feedback