Added an Appender property, MaxRetries.

MaxRetries controls how many times we try to resend a message if the
first publish attempt fails.