Trim newline characters in LineProtocol and include it in autoload.

Also added some basic tests for LineProtocol.
Merge pull request #151 from gaffneyc/master

Improvements to LineProtocol and have it autoload.