Add upgrade command

This fixes #8.
Merge pull request #16 from justinforce/upgrade

Add upgrade command