Scheduled post support

Changed from `publish_post` to `transition_post_status` hook for determining if a post is published which should account for scheduled posts. I have not tested this out yet, but I think it should work.