Make original data available in the script

This patch makes the original CSV data available in the script panel. It needs more testing before it's merged, but that's hampered by #132.

Fixes #126.