Adds a priority system for the upgrade scripts and removes some really old scripts [#956 state:resolved]