Added functionality to support adding post-script commands.

Add a function to the config.sh file to add extra commands that needs to run after the install/upgrade or reset scripts have finished.