split the pfsync input routine up so that each action has its own function to handle it. this is to modularise it in preparation for further changes.
split the pfsync input routine up so that each action has its own function
to handle it. this is to modularise it in preparation for further changes.

in my opinion it also makes the code a lot easier to read and to maintain.

tested by sthen@ johan@

orumin/openbsd-efivars,orumin/openbsd-efivars,orumin/openbsd-efivars,orumin/openbsd-efivars