Refactor addon command to inherit from new.

Removes duplication.
Merge pull request #1609 from rwjblue/git-init-in-addon

Refactor addon command to inherit from new.