Auth checks refactoring
Auth checks refactoring

Refactoring auth checks using a single check_auth() function. This improves the module readability and maintainability
kaji-project/shinken-mod-ws-arbiter,shinken-monitoring/mod-ws-arbiter