Implement message archiving and develop messaging protocol