split out util functions from yubico-piv-tool.c
move basic.sh test to subdir of tool
move lib tests under lib
change internal.h to util.h
let parse_name() take a const char* instead
test for parse_name()