Review: refactor packaging routines to common file

Signed-off-by: Dan Mick <dan.mick@inktank.com>
Review: switch to selecting remotes by roles in the 'normal' way

This buys us, also, the ability to select remotes by rule, i.e.
"any osd or mon gets calamari-agent installed"

Signed-off-by: Dan Mick <dan.mick@inktank.com>