refactor server_status_advisor.php: move functions to server_status_advisor.lib.php