Changed the Layout class to be instantiable and configurable via logback configuration.  It should match the GelfAppender now.

In order to share some methods that were originally in the Appender, they were pulled out into their own util class, and shared across the appender and layout classes.