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
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 #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
WP-528: Initial refactor of PZH to use express framework

This commit is not a complete working version: the PZH TLS server is
stubbed out.  Initial certificate exchange has been implemented.

Jira Issue: WP-528
WP-528: PZH Web interface now talks to the PZH, incomplete

Moved the folder the webinos/pzhweb as the pzh web interface is now
logically on a part with the pzp and pzh.

The PZHWeb interface now creates a TLS connection to the PZH

Totally insecure: the PZH isn't authenticating the PZH Web Interface

No message handling has been implemented yet
WP-528: Add reconnection capability to web server TLS client

The web server will now attempt to reconnect to the PZH TLS server
10 times before giving up.  This will be useful if any errors occur.

Jira issue: WP-528
WP-528: fix for reconnection capability plus minor changes to the PZH structure

This is part of the refactoring work on the PZH.  It provides an update to the
connection between the PZH Web Interface and PZH.

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

Wp 581 command line args
Refactoring code for separate PZH web server
Enrollment is working from PZH end.
From PZH end all data is retrievable.
PZH-PZH communication requires notification bit working.

Jira Issue: WP-528
PZH - PZH connection request working

Added support for PZH list

Jira Issue: WP-528
Pzp Enrollment Updated to match with changes to Pzh Web Server

Changes include: PZP Testbed sets Pzh Provider address, then TestBed redirects to Pzh Login, PZH then sets webSocket connection towards the PZP, sends token. PZP then sends CSR and token back to PZH to receive signed certificate.

Jira Issue: WP-528
Policy manager: if no feature is associated to the method then allow.
Jira issue: WP-697
Client side display handle changes

Mostly bug fixing and changes to client side display.

Jira Issue: WP-528