Process buffer truncation

Here's an implementation of process buffer truncation. I implemented it first as just a one-off function and then changed it to a hook-based implementation (adding `prodigy-process-after-insert-hook` and the `prodigy-current-service` special variable).  If you don't like the hook-plus-special-var approach, there could be other alternatives. Let me know what you think.