No longer process line-by-line (fixes --partial and --inline, issue 36)
Test cross-line state (related to issue 36)
Fix approach to trailing newlines

In particular:
- no longer produce two trailing newlines without need to
- Put trailing newline under control of API user
Merge pull request #37 from hartwork/fix-line-handling

Fix line handling (including issue #36)