Added support for options parameter in console.dir()

Solved issue: #5428. Now console.dir() accepts an optional parameter to define the maximum depth, colors and showHidden of the output.
I think it should be using `util._extend()` here. Modifying user-supplied object is not really a good idea.