Allow a list of globals to be passed

This adds a `globals` option.  If globals is an array of string, those variables will be assumed to be global.