AP_HAL: added safety_switch_state() function in hal.util

will be used by copter to check safety switch is set
HAL_PX4: try to reopen UARTs if safety switch is disarmed

this allows attaching to the USB port after power on

Pair-Programmed-With: Randy Mackay <rmackay9@yahoo.com>