Add ability to add deprecated command from scripts and plugins.
Update HPM hooks.
Merge pull request #391 from 4144/addscriptdeprecated

Add plugins "function" addScriptCommandDeprecated