Move switch actions to switches_action.h

Hi,

I've moved the switch action definitions to an own header file.
Please merge and adapt the APC at the same time.

I didn't want to break the APC on purpose :)