Add appstate sync api

This implementation is based on the app2app api, it is only client-side running
in the browser or wrt.

In order for the api to recognize when there are properties to sync it needs to
know about those properties. Either a template object with existing
properties is used when creating the sync object or for a new prop added later
to a sync obj it is needed to call watch on for them first, so they can be
synced.

Jira-issue: WP-235
Improve jasmine api tests

Remove all of the self defined matchers like toHaveProp, toBeFunction,
etc. and use the ones provided by jamsine. Don't run findServices for
each spec, instead do it once for the main suite and use that one for all
specs.

Jira-issue: WP-725
Update the PZH Web Interface to support issued SSL certificates.

The PZH Web Interface now supports an issued SSL certificate as well
as loading intermediate certificates.  It also uses a different key for
connecting to the PZH TLS Server (pzh.webinos.org:80) compared with hosting
an SSL web server (pzh.webinos.org:443).

Jira issue: WP-396
Update PZH Web Server to support issued SSL certificates

(2) : Minor change to remove debug code.

Jira issue: WP-396
Add grunt.bat

On Windows this fixes the need to call grunt.cmd. Instead of trying to
execute the grunt.js file as if it were an executable it will now
execute the batch instead which calls grunt.

Jira-issue: WP-202
Merge pull request #448 from aldafu/WP-202-add-grunt.bat

Add grunt.bat
Merge pull request #446 from aldafu/WP-725-improve-jasmine-tests

Improve jasmine api tests
Merge pull request #441 from aldafu/WP-235-add-appstate-sync-api

Add appstate sync api
Improve certificate.js to selectively add webclient/webssl objects.

This is based on Habib's feedback:
https://github.com/webinos/Webinos-Platform/pull/447#discussion-diff-2828736

Jira issue: WP-396
Ignore IntelliJ IDEA project files
Added rules for git to ignore IntelliJ Idea project files.
It ignores both project formats (Directory based -.idea, .iml- and File based -.ipr, .iws, .iml-)

Jira issue: WP-726
Merge pull request #449 from cbotsikas/WP-726

Ignore IntelliJ IDEA project files
Fix contacts api local file discovery
Fixed contacts api local file discovery bug on windows and used webinos' core function to get .webinos path.
Also added a setting placeholder in order to manually set the mab file.

Jira issue: WP-727
Merge pull request #450 from cbotsikas/WP-727

Fix contacts api local file discovery
Merge pull request #447 from jplyle/test-real-ssl-certs

Support for real SSL certificates at the PZH Web Server.
Adding Sensor API impl for Android

Jira-issue: WP-729

This implements the Sensor API for Android.
Rewriting of the old and incomplete implementation.
NFC API implementation for Android

Jira issue: WP-728
Merge pull request #445 from pmorau/WP-712

Adding Sensor API impl for Android
Merge pull request #451 from pmorau/nfc2

NFC API implementation for Android