Reorganized filesystem metadata in order to implement #391. Adds file tags (see #414).