Utility for upgrading Commotion-router firmware with custom pre-upgrade scripts