Fixes #4646: Add inventory-upgrade script, add property waiting.inventor...

...y.queue.size

http://www.rudder-project.org/redmine/issues/4646