Fix to for logging switch on browsers having localStorage set to null 

applies to e.g. Midori browser on RPi.

Jira-issue: WP-1286
Merge and bug fix of Habib's changes.js

Jira issue: WP-1319
Factor out proxy fetching code so that it can be called from more than one place.

Jira issue: WP-1318
Revert changes to re-connection logic.

Was causing Linux PZP to fail to re-connect when PZH comes back online.

Jira issue: WP-1319
Merge pull request #82 from TobyEalden/habib-fixes

Merge and bug fix Habib's changes
Merge pull request #77 from mlasak/patch-1

Fix to for logging switch on browsers having localStorage set to null
disable syncing of trustedList from PZP to PZH

fixes bug where an empty trustedList is synced to PZH (right after
enrollment) overriding the info of the existing PZH there, which made it
impossible for other PZPs to join this PZH.
Merge pull request #83 from aldafu/disable-trustedlist-sync-to-pzh

disable syncing of trustedList from PZP to PZH