Post metadata testing

Added storing and reading of post metadata, not final version.