WIP: Support metadata at de/serialization time (moved)

keeping https://github.com/pydata/pandas/pull/3297 alive, which had the target PR branch wrong.