Allow the log streamer input to determine how far into the stream it wants to flush save data for to allow end of record saving to work properly.
Utilize the buffer flushing.
No need to slice as the length already is appropriate.
Refactor into a smaller function.
Case fix.
Merge pull request #655 from mozilla-services/features/logstreamer-location-save-fix

Allow the log streamer input to determine how far into the stream it wan...