Port to Wildstar environment

Remove calls to os, add tokenize function, add callback_write, add
default.
optparse.lua was moved