refactored to create InputArea in preparation for autocomplete
simplified Script struct by encapsulating multiline continuation state in InputArea and changing Script.Lines to Script.Chunks
refactored to TextArea to enable autocomplete, export, etc