fix recursive directory creation

check the return value from stat call and only create dir if it doesn't
exist already.

Jira-issue: WP-207
Fix writing to console.log on Android

Check if /sdcard path is available before trying to write to it.

Jira-issue: WP-207
Update .gitignore

To include generated files form the Android projects.

Jira-issue: WP-207
Correct TLS port number that blocks mdns PZP connection

Jira Issue: WP-210
Merge pull request #163 from ziransun/WP-210

Correct TLS port number that blocks mdns PZP connection
Merge pull request #161 from aldafu/WP-207-fix-pzp-startup-on-android

WP-207 fix pzp startup on android
Fix recusive path creation.

Previous fix still caused problems sometimes. Use existsSync call
instead of calls to stats object which could throw error if path element
didn't exist. Should work on 0.6.x and 0.8.x now.

Jira-issue: WP-207
Fix property iteration bug.

Add check using hasOwnPropery to avoid bugs caused when cretins add properties to built-in types (e.g. Array).

Jira issue: WP-211
Fix property iteration bug.

Add check using hasOwnPropery to avoid bugs caused when cretins add properties to built-in types (e.g. Array).

Jira issue: WP-211
Add PZP to PZP peer connection support in Android

Jira Issue: WP-172
Correct indention

Jira Issue: WP-172
Merge pull request #164 from aldafu/WP-207-fix-pzp-startup-on-android

Fix recusive path creation.
Merge pull request #165 from ziransun/WP-172

Add Android peer connection support 
Add widget manager ui

Widget manager user interface is built using the Express framework and the Jade templating engine.

Jira issue: WP-211
Default values for wrtHome variable

Added default values for the wrtHome variable on the Windows and Linux platforms.

Jira issue: WP-211
Allow remote URL start files.

Temporary hack to allow widgets to refer to external URLs as start files.

Jira issue: WP-211
Callback in virgin mode.

Add call to callback in createDirectoryStructure when running in virgin mode.

Jira issue: WP-211
Improve reporting of port listening

Make sure that the correct logging occurs when the port starts listening, including when retrying after an in-use port is encountered.

Jira issue: WP-211
Add wrt folder to createDirectoryStructure

Create the wrt folder in the ./webinos folder during initialisation.

Jira issue: WP-211
Add widget server support

Add the option to start the widget server during initialisation.

Jira issue: WP-211