Create OnEdit.gs

Initial dump of original code fro the spreadsheet.
Lots of missing functionality, but no known bugs either.