Move discourse_plugin to lib

As discussed here: https://meta.discourse.org/t/ruby-move-vendored-gem-to-lib/17892