Replace snmptrap with webapi
Reworked enforcement.pm to call the json WebAPI.
Changed WebAPI uri to use port defined in configuration.
Fixed wrong config for soap port.
Fixed wrong variable (switch vs switch_id).
Initial commit.
Imported from branch feature/pfqueue.
Snmptrapd now sends traps serialized as json to jsonAPI.
Fixed logging.
Added error handling.
Fixed 'use lib'.
Added webservices.url and added a jsonclient module
Merge branch 'feature/json-webapi' of github.com:inverse-inc/packetfence into feature/json-webapi
Merge branch 'feature/json-webapi' of github.com:inverse-inc/packetfence into feature/json-webapi