Update JS stdout/stderr.write methods for new protocol
Update gitignore to include OS X object files.