Refactoring packaging.

Rather than have our own publishing code switch to using bundler's tasks.
Also this ensures anyone running tests has all necessary dependencies.