refractured twilio ping code

Working on setting a refresh interval and having an if statement to only get the most recent (if any) message.