[WIP] Refactor of rake tasks

Working in progress for refactoring of the devutils publish and vendor rake tasks.
recommend we consider Stud::Temporary.directory

Also, recommend you do temporary dirs like this:

```ruby
let(:tmpdir) { Dir.mktmpdir }
after do
  Dir.delete(tmpdir)
end
```