Adds ability to set custom taxonomy terms on create and edit post

I couldn't get the `tax_input` paramenter of `wp_insert_post` to work reliably for some reason. As we already have the post ID at this point, `wp_set_object_terms` works fine.