PZP state handling changes

Introduced getPzpModeStatus on the client side to find if PZP is in peer or hub mode. On the server side state and mode variable has been preceded by state which keeps track of mode states.

Jira Issue: WP-656
added dependencies, package, cpu, device, input, memory, wifi, wired,

jira issue: wp-672
Removed xml2json from package.json

Updated sync manager to use xml2js
Moved openid to optional dependencies

Jira Issue: WP-692
webinos_pzp.js updated to use optimist to parse command line arguments

All the options and default value remain same.

Jira Issue: WP-581
Define command line options once

Combine command line option description and defaults. Always prefer
command line options before options from config file.

Jira-issue: WP-581
Merge pull request #3 from aldafu/WP-581-command-line-args

Define command line options once
Replaced xml parsing from xml2json to xml2js

Changes related to using a different node module as used by other node module and related changes as structure returned by node modules are different

Jira Issue: WP-408
Merge pull request #391 from krishnabangalore/wp-672_devicestatuswin

Wp 672 devicestatuswin
Merge pull request #417 from habibvirji/WP-408-MediaContent-Linux

Replaced xml parsing from xml2json to xml2js
Merge pull request #411 from habibvirji/WP-692-remove-xml2json

Removed xml2json from package.json
Merge pull request #412 from habibvirji/WP-656-PzpModeInfoToClient

PZP state handling changes
Policy and Widget start

Jira Issue: WP-581
Merge pull request #419 from habibvirji/WP-581-command-line-args

Wp 581 command line args
Policy manager: if no feature is associated to the method then allow.
Jira issue: WP-697
Merge pull request #423 from steverc/WP-697-pm-bugfix

Policy manager: if no feature is associated to the method then allow.