adding a ping endpoint, and factoring out the common message send method, as well as fixing the setting of APP_NAME in the makefile.