Many updates

- Exit warning dialog is now based on standard NSAlert
- All command-line tools are executed asynchronously using
  NSOperationQueue
- Status is processed using XSLT and visualized in basic HTML format

Also, all constants for command-line tools are moved to wscipt/config.h.  If
new commands needed, they should be added into wscript, which will
eventually create proper config.h file.

Change-Id: I2e7c248f8f3b92085a50c49761bd81702fe8685b
diff --git a/osx/Resources/status.xslt b/osx/Resources/status.xslt
new file mode 100644
index 0000000..4625a82
--- /dev/null
+++ b/osx/Resources/status.xslt
@@ -0,0 +1,28 @@
+<xsl:stylesheet version = '1.0'
+                xmlns:xsl='http://www.w3.org/1999/XSL/Transform'>
+
+<xsl:template match="/ndnd">
+<html><body>
+<xsl:apply-templates select="forwarding/fentry" />
+</body></html>
+</xsl:template>
+
+<xsl:template match="fentry">
+<xsl:apply-templates select="dest/faceid" />
+<xsl:text> </xsl:text>
+<xsl:value-of select="prefix"/>
+<br/>
+</xsl:template>
+
+<xsl:template match="faceid">
+<xsl:variable name="id"><xsl:value-of select="." /></xsl:variable>
+<b>face: <xsl:copy-of select="$id" />
+
+<xsl:choose>
+  <xsl:when test="count(//face/ip[../faceid=$id]) &gt; 0"> (<xsl:value-of select="//face/ip[../faceid=$id]" />)
+  </xsl:when>
+  <xsl:otherwise> (app)</xsl:otherwise>
+</xsl:choose></b>
+</xsl:template>
+
+</xsl:stylesheet>