Fixed fifo path in tmux_save
Broke out history saving from savePane() into a new function
Added more comments
Support for new features in v1.8
Hopefully made the script more portable
Remove trailing new lines from saved history buffer