libcacard: initial commit