Add a -all option to upgrade.

Add the option -all to the upgrade command and parse the installed modules for updated ones.

close #678