Move acts_as_publishable from plugin to gem to support Rails 4.0+