Export functionality

I'm starting to work on making exporting happen. Not at all ready to merge - I'm just curious what you think.
This would be much easier to implement in Python--see https://github.com/jdf/processing.py/blob/master/runtime/src/jycessing/add_global_statements.py for an example.