Tail plugin

The tail plugin uses some very specific syntax in the configuration file.  In order to keep the template clean, I added a function to the library.