Server Status and Ping

Extracted code for server status and ping