Implement post_meta insertion/update

Logic to read post_meta from the sent json and update a post with it. Code has been moved to **after** the post is created or updated, since we need an ID for update_post_meta.

*This is my first pull request ever, if there are errors or misconceptions please be so kind as to tell me what I'm doing wrong*