Support for JSDoc command line options

* Refactored code to support JSDoc command line options
* Still supporting old syntax for providing JSDoc destination through 'dest' key