agent: Support reboot as optional shutdown parameter

Added optional boolean parameter determining whether to pass the '-r'
parameter to the appropriate shutdown script.

Change-Id: I94929ff49677ee79569117158c53bdaf086b3ae8
Signed-off-by: Martin Betak <mbetak@redhat.com>