Fix showing help in certain JS environments.

Some JS environments (like PhantomJS) need the context of a console.error() call to be console, even though nodejs apparently doesn't care. This, apart from a few custom polyfills, makes optimist compatible with PhantomJS.

See https://github.com/eventualbuddha/yuno-api.