Pre/Post upgrade command hooks

This commit adds logic for an individual command to be executed
before and after the upgade process for additional scripts or
processes that may be required. Also fix a line wrap for improved
readability of .rst in plain text mode.

Change-Id: Ica50d23754a334bc698c5112d2a4e683f02e97cd