Added Flattening and parsing of cardlist visibilities
Also cleaned up client's parsing
uses os to create paths instead of just using / to delimit