Create the gallery shortcode when saving a post. Fixes #184.