Index: Dev/trunk/src/node_modules/express/node_modules/buffer-crc32/package.json
===================================================================
--- Dev/trunk/src/node_modules/express/node_modules/buffer-crc32/package.json	(revision 484)
+++ Dev/trunk/src/node_modules/express/node_modules/buffer-crc32/package.json	(revision 487)
@@ -20,5 +20,5 @@
   "main": "index.js",
   "scripts": {
-    "test": "./node_modules/.bin/tap tests/*.test.js"
+    "test": "tap tests/*.test.js"
   },
   "dependencies": {},
@@ -36,4 +36,8 @@
   },
   "_id": "buffer-crc32@0.2.1",
-  "_from": "buffer-crc32@0.2.1"
+  "dist": {
+    "shasum": "d4831cc88b961550a88d829efbc0b139caf22d8c"
+  },
+  "_from": "buffer-crc32@0.2.1",
+  "_resolved": "https://registry.npmjs.org/buffer-crc32/-/buffer-crc32-0.2.1.tgz"
 }
Index: Dev/trunk/src/node_modules/express/node_modules/commander/package.json
===================================================================
--- Dev/trunk/src/node_modules/express/node_modules/commander/package.json	(revision 484)
+++ Dev/trunk/src/node_modules/express/node_modules/commander/package.json	(revision 487)
@@ -34,5 +34,10 @@
     "url": "https://github.com/visionmedia/commander.js/issues"
   },
+  "homepage": "https://github.com/visionmedia/commander.js",
   "_id": "commander@0.6.1",
-  "_from": "commander@0.6.1"
+  "dist": {
+    "shasum": "c725ed5e9b2bf532b3fe3cba4f81b552cecf0550"
+  },
+  "_from": "commander@0.6.1",
+  "_resolved": "https://registry.npmjs.org/commander/-/commander-0.6.1.tgz"
 }
Index: Dev/trunk/src/node_modules/express/node_modules/connect/node_modules/bytes/package.json
===================================================================
--- Dev/trunk/src/node_modules/express/node_modules/connect/node_modules/bytes/package.json	(revision 484)
+++ Dev/trunk/src/node_modules/express/node_modules/connect/node_modules/bytes/package.json	(revision 487)
@@ -17,4 +17,8 @@
   "readmeFilename": "Readme.md",
   "_id": "bytes@0.2.0",
-  "_from": "bytes@0.2.0"
+  "dist": {
+    "shasum": "b4c569295d86a498a119945f1d8a26f76e4b5462"
+  },
+  "_from": "bytes@0.2.0",
+  "_resolved": "https://registry.npmjs.org/bytes/-/bytes-0.2.0.tgz"
 }
Index: Dev/trunk/src/node_modules/express/node_modules/connect/node_modules/cookie/package.json
===================================================================
--- Dev/trunk/src/node_modules/express/node_modules/connect/node_modules/cookie/package.json	(revision 484)
+++ Dev/trunk/src/node_modules/express/node_modules/connect/node_modules/cookie/package.json	(revision 487)
@@ -32,5 +32,10 @@
     "url": "https://github.com/shtylman/node-cookie/issues"
   },
+  "homepage": "https://github.com/shtylman/node-cookie",
   "_id": "cookie@0.0.5",
-  "_from": "cookie@0.0.5"
+  "dist": {
+    "shasum": "2597397e06ec3eaf53c88851570e97949c1e4dcd"
+  },
+  "_from": "cookie@0.0.5",
+  "_resolved": "https://registry.npmjs.org/cookie/-/cookie-0.0.5.tgz"
 }
Index: Dev/trunk/src/node_modules/express/node_modules/connect/node_modules/formidable/package.json
===================================================================
--- Dev/trunk/src/node_modules/express/node_modules/connect/node_modules/formidable/package.json	(revision 484)
+++ Dev/trunk/src/node_modules/express/node_modules/connect/node_modules/formidable/package.json	(revision 487)
@@ -35,4 +35,8 @@
   "dependencies": {},
   "_id": "formidable@1.0.14",
-  "_from": "formidable@1.0.14"
+  "dist": {
+    "shasum": "08be7c89a9ebffbe5b2fbd4df0ad3f5cd19c5147"
+  },
+  "_from": "formidable@1.0.14",
+  "_resolved": "https://registry.npmjs.org/formidable/-/formidable-1.0.14.tgz"
 }
Index: Dev/trunk/src/node_modules/express/node_modules/connect/node_modules/pause/package.json
===================================================================
--- Dev/trunk/src/node_modules/express/node_modules/connect/node_modules/pause/package.json	(revision 484)
+++ Dev/trunk/src/node_modules/express/node_modules/connect/node_modules/pause/package.json	(revision 487)
@@ -17,4 +17,8 @@
   "readmeFilename": "Readme.md",
   "_id": "pause@0.0.1",
-  "_from": "pause@0.0.1"
+  "dist": {
+    "shasum": "dc3b2287742f3f6249f2d228e74cff5a3f9fe8da"
+  },
+  "_from": "pause@0.0.1",
+  "_resolved": "https://registry.npmjs.org/pause/-/pause-0.0.1.tgz"
 }
Index: Dev/trunk/src/node_modules/express/node_modules/connect/node_modules/qs/package.json
===================================================================
--- Dev/trunk/src/node_modules/express/node_modules/connect/node_modules/qs/package.json	(revision 484)
+++ Dev/trunk/src/node_modules/express/node_modules/connect/node_modules/qs/package.json	(revision 487)
@@ -33,5 +33,10 @@
     "url": "https://github.com/visionmedia/node-querystring/issues"
   },
+  "homepage": "https://github.com/visionmedia/node-querystring",
   "_id": "qs@0.6.5",
-  "_from": "qs@0.6.5"
+  "dist": {
+    "shasum": "cdaafb6ed1dbcf48405f41ca92bf95361ad923dc"
+  },
+  "_from": "qs@0.6.5",
+  "_resolved": "https://registry.npmjs.org/qs/-/qs-0.6.5.tgz"
 }
Index: Dev/trunk/src/node_modules/express/node_modules/connect/node_modules/send/node_modules/mime/README.md
===================================================================
--- Dev/trunk/src/node_modules/express/node_modules/connect/node_modules/send/node_modules/mime/README.md	(revision 484)
+++ Dev/trunk/src/node_modules/express/node_modules/connect/node_modules/send/node_modules/mime/README.md	(revision 487)
@@ -12,5 +12,5 @@
 
 ### mime.lookup(path)
-Get the mime type associated with a file. Performs a case-insensitive lookup using the extension in `path` (the substring after the last '/' or '.').  E.g.
+Get the mime type associated with a file, if no mime type is found `application/octet-stream` is returned. Performs a case-insensitive lookup using the extension in `path` (the substring after the last '/' or '.').  E.g.
 
     var mime = require('mime');
@@ -20,4 +20,7 @@
     mime.lookup('.TXT');                      // => 'text/plain'
     mime.lookup('htm');                       // => 'text/html'
+
+### mime.default_type
+Sets the mime type returned when `mime.lookup` fails to find the extension searched for. (Default is `application/octet-stream`.)
 
 ### mime.extension(type)
Index: Dev/trunk/src/node_modules/express/node_modules/connect/node_modules/send/node_modules/mime/mime.js
===================================================================
--- Dev/trunk/src/node_modules/express/node_modules/connect/node_modules/send/node_modules/mime/mime.js	(revision 484)
+++ Dev/trunk/src/node_modules/express/node_modules/connect/node_modules/send/node_modules/mime/mime.js	(revision 487)
@@ -70,5 +70,5 @@
  */
 Mime.prototype.lookup = function(path, fallback) {
-  var ext = path.replace(/.*[\.\/]/, '').toLowerCase();
+  var ext = path.replace(/.*[\.\/\\]/, '').toLowerCase();
 
   return this.types[ext] || fallback || this.default_type;
@@ -79,5 +79,6 @@
  */
 Mime.prototype.extension = function(mimeType) {
-  return this.extensions[mimeType];
+  var type = mimeType.match(/^\s*([^;\s]*)(?:;|\s|$)/)[1].toLowerCase();
+  return this.extensions[type];
 };
 
Index: Dev/trunk/src/node_modules/express/node_modules/connect/node_modules/send/node_modules/mime/package.json
===================================================================
--- Dev/trunk/src/node_modules/express/node_modules/connect/node_modules/send/node_modules/mime/package.json	(revision 484)
+++ Dev/trunk/src/node_modules/express/node_modules/connect/node_modules/send/node_modules/mime/package.json	(revision 487)
@@ -25,11 +25,12 @@
     "type": "git"
   },
-  "version": "1.2.9",
-  "readme": "# mime\n\nComprehensive MIME type mapping API. Includes all 600+ types and 800+ extensions defined by the Apache project, plus additional types submitted by the node.js community.\n\n## Install\n\nInstall with [npm](http://github.com/isaacs/npm):\n\n    npm install mime\n\n## API - Queries\n\n### mime.lookup(path)\nGet the mime type associated with a file. Performs a case-insensitive lookup using the extension in `path` (the substring after the last '/' or '.').  E.g.\n\n    var mime = require('mime');\n\n    mime.lookup('/path/to/file.txt');         // => 'text/plain'\n    mime.lookup('file.txt');                  // => 'text/plain'\n    mime.lookup('.TXT');                      // => 'text/plain'\n    mime.lookup('htm');                       // => 'text/html'\n\n### mime.extension(type)\nGet the default extension for `type`\n\n    mime.extension('text/html');                 // => 'html'\n    mime.extension('application/octet-stream');  // => 'bin'\n\n### mime.charsets.lookup()\n\nMap mime-type to charset\n\n    mime.charsets.lookup('text/plain');        // => 'UTF-8'\n\n(The logic for charset lookups is pretty rudimentary.  Feel free to suggest improvements.)\n\n## API - Defining Custom Types\n\nThe following APIs allow you to add your own type mappings within your project.  If you feel a type should be included as part of node-mime, see [requesting new types](https://github.com/broofa/node-mime/wiki/Requesting-New-Types).\n\n### mime.define()\n\nAdd custom mime/extension mappings\n\n    mime.define({\n        'text/x-some-format': ['x-sf', 'x-sft', 'x-sfml'],\n        'application/x-my-type': ['x-mt', 'x-mtt'],\n        // etc ...\n    });\n\n    mime.lookup('x-sft');                 // => 'text/x-some-format'\n\nThe first entry in the extensions array is returned by `mime.extension()`. E.g.\n\n    mime.extension('text/x-some-format'); // => 'x-sf'\n\n### mime.load(filepath)\n\nLoad mappings from an Apache \".types\" format file\n\n    mime.load('./my_project.types');\n\nThe .types file format is simple -  See the `types` dir for examples.\n",
+  "version": "1.2.11",
+  "readme": "# mime\n\nComprehensive MIME type mapping API. Includes all 600+ types and 800+ extensions defined by the Apache project, plus additional types submitted by the node.js community.\n\n## Install\n\nInstall with [npm](http://github.com/isaacs/npm):\n\n    npm install mime\n\n## API - Queries\n\n### mime.lookup(path)\nGet the mime type associated with a file, if no mime type is found `application/octet-stream` is returned. Performs a case-insensitive lookup using the extension in `path` (the substring after the last '/' or '.').  E.g.\n\n    var mime = require('mime');\n\n    mime.lookup('/path/to/file.txt');         // => 'text/plain'\n    mime.lookup('file.txt');                  // => 'text/plain'\n    mime.lookup('.TXT');                      // => 'text/plain'\n    mime.lookup('htm');                       // => 'text/html'\n\n### mime.default_type\nSets the mime type returned when `mime.lookup` fails to find the extension searched for. (Default is `application/octet-stream`.)\n\n### mime.extension(type)\nGet the default extension for `type`\n\n    mime.extension('text/html');                 // => 'html'\n    mime.extension('application/octet-stream');  // => 'bin'\n\n### mime.charsets.lookup()\n\nMap mime-type to charset\n\n    mime.charsets.lookup('text/plain');        // => 'UTF-8'\n\n(The logic for charset lookups is pretty rudimentary.  Feel free to suggest improvements.)\n\n## API - Defining Custom Types\n\nThe following APIs allow you to add your own type mappings within your project.  If you feel a type should be included as part of node-mime, see [requesting new types](https://github.com/broofa/node-mime/wiki/Requesting-New-Types).\n\n### mime.define()\n\nAdd custom mime/extension mappings\n\n    mime.define({\n        'text/x-some-format': ['x-sf', 'x-sft', 'x-sfml'],\n        'application/x-my-type': ['x-mt', 'x-mtt'],\n        // etc ...\n    });\n\n    mime.lookup('x-sft');                 // => 'text/x-some-format'\n\nThe first entry in the extensions array is returned by `mime.extension()`. E.g.\n\n    mime.extension('text/x-some-format'); // => 'x-sf'\n\n### mime.load(filepath)\n\nLoad mappings from an Apache \".types\" format file\n\n    mime.load('./my_project.types');\n\nThe .types file format is simple -  See the `types` dir for examples.\n",
   "readmeFilename": "README.md",
   "bugs": {
     "url": "https://github.com/broofa/node-mime/issues"
   },
-  "_id": "mime@1.2.9",
+  "homepage": "https://github.com/broofa/node-mime",
+  "_id": "mime@1.2.11",
   "_from": "mime@~1.2.9"
 }
Index: Dev/trunk/src/node_modules/express/node_modules/connect/node_modules/send/node_modules/mime/test.js
===================================================================
--- Dev/trunk/src/node_modules/express/node_modules/connect/node_modules/send/node_modules/mime/test.js	(revision 484)
+++ Dev/trunk/src/node_modules/express/node_modules/connect/node_modules/send/node_modules/mime/test.js	(revision 487)
@@ -5,4 +5,5 @@
 var mime = require('./mime');
 var assert = require('assert');
+var path = require('path');
 
 function eq(a, b) {
@@ -18,14 +19,14 @@
 //
 
-eq('text/plain', mime.lookup('text.txt'));
-eq('text/plain', mime.lookup('.text.txt'));
-eq('text/plain', mime.lookup('.txt'));
-eq('text/plain', mime.lookup('txt'));
-eq('application/octet-stream', mime.lookup('text.nope'));
-eq('fallback', mime.lookup('text.fallback', 'fallback'));
-eq('application/octet-stream', mime.lookup('constructor'));
-eq('text/plain', mime.lookup('TEXT.TXT'));
-eq('text/event-stream', mime.lookup('text/event-stream'));
-eq('application/x-web-app-manifest+json', mime.lookup('text.webapp'));
+eq('text/plain', mime.lookup('text.txt'));     // normal file
+eq('text/plain', mime.lookup('TEXT.TXT'));     // uppercase
+eq('text/plain', mime.lookup('dir/text.txt')); // dir + file
+eq('text/plain', mime.lookup('.text.txt'));    // hidden file
+eq('text/plain', mime.lookup('.txt'));         // nameless
+eq('text/plain', mime.lookup('txt'));          // extension-only
+eq('text/plain', mime.lookup('/txt'));         // extension-less ()
+eq('text/plain', mime.lookup('\\txt'));        // Windows, extension-less
+eq('application/octet-stream', mime.lookup('text.nope')); // unrecognized
+eq('fallback', mime.lookup('text.fallback', 'fallback')); // alternate default
 
 //
@@ -36,12 +37,21 @@
 eq('html', mime.extension(mime.types.htm));
 eq('bin', mime.extension('application/octet-stream'));
-eq(undefined, mime.extension('constructor'));
+eq('bin', mime.extension('application/octet-stream '));
+eq('html', mime.extension(' text/html; charset=UTF-8'));
+eq('html', mime.extension('text/html; charset=UTF-8 '));
+eq('html', mime.extension('text/html; charset=UTF-8'));
+eq('html', mime.extension('text/html ; charset=UTF-8'));
+eq('html', mime.extension('text/html;charset=UTF-8'));
+eq('html', mime.extension('text/Html;charset=UTF-8'));
+eq(undefined, mime.extension('unrecognized'));
 
 //
-// Test node types
+// Test node.types lookups
 //
 
+eq('application/font-woff', mime.lookup('file.woff'));
 eq('application/octet-stream', mime.lookup('file.buffer'));
 eq('audio/mp4', mime.lookup('file.m4a'));
+eq('font/opentype', mime.lookup('file.otf'));
 
 //
@@ -53,3 +63,22 @@
 eq('fallback', mime.charsets.lookup('application/octet-stream', 'fallback'));
 
+//
+// Test for overlaps between mime.types and node.types
+//
+
+var apacheTypes = new mime.Mime(), nodeTypes = new mime.Mime();
+apacheTypes.load(path.join(__dirname, 'types/mime.types'));
+nodeTypes.load(path.join(__dirname, 'types/node.types'));
+
+var keys = [].concat(Object.keys(apacheTypes.types))
+             .concat(Object.keys(nodeTypes.types));
+keys.sort();
+for (var i = 1; i < keys.length; i++) {
+  if (keys[i] == keys[i-1]) {
+    console.warn('Warning: ' +
+      'node.types defines ' + keys[i] + '->' + nodeTypes.types[keys[i]] +
+      ', mime.types defines ' + keys[i] + '->' + apacheTypes.types[keys[i]]);
+  }
+}
+
 console.log('\nOK');
Index: Dev/trunk/src/node_modules/express/node_modules/connect/node_modules/send/node_modules/mime/types/mime.types
===================================================================
--- Dev/trunk/src/node_modules/express/node_modules/connect/node_modules/send/node_modules/mime/types/mime.types	(revision 484)
+++ Dev/trunk/src/node_modules/express/node_modules/connect/node_modules/send/node_modules/mime/types/mime.types	(revision 487)
@@ -1055,5 +1055,5 @@
 application/x-font-ttf				ttf ttc
 application/x-font-type1			pfa pfb pfm afm
-application/x-font-woff				woff
+application/font-woff				woff
 # application/x-font-vfont
 application/x-freearc				arc
Index: Dev/trunk/src/node_modules/express/node_modules/connect/node_modules/send/node_modules/mime/types/node.types
===================================================================
--- Dev/trunk/src/node_modules/express/node_modules/connect/node_modules/send/node_modules/mime/types/node.types	(revision 484)
+++ Dev/trunk/src/node_modules/express/node_modules/connect/node_modules/send/node_modules/mime/types/node.types	(revision 487)
@@ -16,9 +16,9 @@
 text/x-component  htc
 
-# What: HTML5 application cache manifest
+# What: HTML5 application cache manifes ('.manifest' extension)
 # Why: De-facto standard. Required by Mozilla browser when serving HTML5 apps
 # per https://developer.mozilla.org/en/offline_resources_in_firefox
 # Added by: louisremi
-text/cache-manifest  appcache manifest
+text/cache-manifest  manifest
 
 # What: node binary buffer format
@@ -59,2 +59,19 @@
 # Added by: avoidwork
 text/x-markdown  markdown md mkd
+
+# What: ini files
+# Why: because they're just text files
+# Added by: Matthew Kastor
+text/plain  ini
+
+# What: DASH Adaptive Streaming manifest
+# Why: https://developer.mozilla.org/en-US/docs/DASH_Adaptive_Streaming_for_HTML_5_Video
+# Added by: eelcocramer
+application/dash+xml mdp
+
+# What: OpenType font files - http://www.microsoft.com/typography/otspec/
+# Why:  Browsers usually ignore the font MIME types and sniff the content,
+#       but Chrome, shows a warning if OpenType fonts aren't served with
+#       the `font/opentype` MIME type: http://i.imgur.com/8c5RN8M.png.
+# Added by: alrra
+font/opentype  otf
Index: Dev/trunk/src/node_modules/express/node_modules/connect/node_modules/send/package.json
===================================================================
--- Dev/trunk/src/node_modules/express/node_modules/connect/node_modules/send/package.json	(revision 484)
+++ Dev/trunk/src/node_modules/express/node_modules/connect/node_modules/send/package.json	(revision 487)
@@ -37,5 +37,10 @@
     "url": "https://github.com/visionmedia/send/issues"
   },
+  "homepage": "https://github.com/visionmedia/send",
   "_id": "send@0.1.1",
-  "_from": "send@0.1.1"
+  "dist": {
+    "shasum": "40ded726322604c29d7229683f9207bd6d76e217"
+  },
+  "_from": "send@0.1.1",
+  "_resolved": "https://registry.npmjs.org/send/-/send-0.1.1.tgz"
 }
Index: Dev/trunk/src/node_modules/express/node_modules/connect/package.json
===================================================================
--- Dev/trunk/src/node_modules/express/node_modules/connect/package.json	(revision 484)
+++ Dev/trunk/src/node_modules/express/node_modules/connect/package.json	(revision 487)
@@ -49,5 +49,10 @@
     "url": "https://github.com/senchalabs/connect/issues"
   },
+  "homepage": "https://github.com/senchalabs/connect",
   "_id": "connect@2.7.11",
-  "_from": "connect@2.7.11"
+  "dist": {
+    "shasum": "839e3928b727827db859a4b3a1d04ea9a06b6ab1"
+  },
+  "_from": "connect@2.7.11",
+  "_resolved": "https://registry.npmjs.org/connect/-/connect-2.7.11.tgz"
 }
Index: Dev/trunk/src/node_modules/express/node_modules/cookie-signature/package.json
===================================================================
--- Dev/trunk/src/node_modules/express/node_modules/cookie-signature/package.json	(revision 484)
+++ Dev/trunk/src/node_modules/express/node_modules/cookie-signature/package.json	(revision 487)
@@ -21,4 +21,8 @@
   "readmeFilename": "Readme.md",
   "_id": "cookie-signature@1.0.1",
-  "_from": "cookie-signature@1.0.1"
+  "dist": {
+    "shasum": "404efcace10fb30f3451483045d743463ae8602c"
+  },
+  "_from": "cookie-signature@1.0.1",
+  "_resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.1.tgz"
 }
Index: Dev/trunk/src/node_modules/express/node_modules/cookie/package.json
===================================================================
--- Dev/trunk/src/node_modules/express/node_modules/cookie/package.json	(revision 484)
+++ Dev/trunk/src/node_modules/express/node_modules/cookie/package.json	(revision 487)
@@ -32,5 +32,10 @@
     "url": "https://github.com/shtylman/node-cookie/issues"
   },
+  "homepage": "https://github.com/shtylman/node-cookie",
   "_id": "cookie@0.1.0",
-  "_from": "cookie@0.1.0"
+  "dist": {
+    "shasum": "b56ac6108fcab9073208d405c4fa8aaa35f00810"
+  },
+  "_from": "cookie@0.1.0",
+  "_resolved": "https://registry.npmjs.org/cookie/-/cookie-0.1.0.tgz"
 }
Index: Dev/trunk/src/node_modules/express/node_modules/debug/Readme.md
===================================================================
--- Dev/trunk/src/node_modules/express/node_modules/debug/Readme.md	(revision 484)
+++ Dev/trunk/src/node_modules/express/node_modules/debug/Readme.md	(revision 487)
@@ -1,3 +1,2 @@
-
 # debug
 
@@ -59,8 +58,9 @@
   ![](http://f.cl.ly/items/2i3h1d3t121M2Z1A3Q0N/Screenshot.png)
 
-  When stdout is not a TTY, `Date#toUTCString()` is used, making it more useful for logging the debug information as shown below:
+  When stderr is not a TTY, `Date#toUTCString()` is used, making it more useful for logging the debug information as shown below:
+  _(NOTE: Debug now uses stderr instead of stdout, so the correct shell command for this example is actually `DEBUG=* node example/worker 2> out &`)_
   
   ![](http://f.cl.ly/items/112H3i0e0o0P0a2Q2r11/Screenshot.png)
-
+  
 ## Conventions
 
Index: Dev/trunk/src/node_modules/express/node_modules/debug/debug.js
===================================================================
--- Dev/trunk/src/node_modules/express/node_modules/debug/debug.js	(revision 484)
+++ Dev/trunk/src/node_modules/express/node_modules/debug/debug.js	(revision 487)
@@ -18,4 +18,6 @@
 
   return function(fmt){
+    fmt = coerce(fmt);
+
     var curr = new Date;
     var ms = curr - (debug[name] || curr);
@@ -120,5 +122,16 @@
 };
 
+/**
+ * Coerce `val`.
+ */
+
+function coerce(val) {
+  if (val instanceof Error) return val.stack || val.message;
+  return val;
+}
+
 // persist
 
-if (window.localStorage) debug.enable(localStorage.debug);
+try {
+  if (window.localStorage) debug.enable(localStorage.debug);
+} catch(e){}
Index: Dev/trunk/src/node_modules/express/node_modules/debug/lib/debug.js
===================================================================
--- Dev/trunk/src/node_modules/express/node_modules/debug/lib/debug.js	(revision 484)
+++ Dev/trunk/src/node_modules/express/node_modules/debug/lib/debug.js	(revision 487)
@@ -109,4 +109,6 @@
 
   function colored(fmt) {
+    fmt = coerce(fmt);
+
     var curr = new Date;
     var ms = curr - (prev[name] || curr);
@@ -122,4 +124,6 @@
 
   function plain(fmt) {
+    fmt = coerce(fmt);
+
     fmt = new Date().toUTCString()
       + ' ' + name + ' ' + fmt;
@@ -133,2 +137,11 @@
     : plain;
 }
+
+/**
+ * Coerce `val`.
+ */
+
+function coerce(val) {
+  if (val instanceof Error) return val.stack || val.message;
+  return val;
+}
Index: Dev/trunk/src/node_modules/express/node_modules/debug/package.json
===================================================================
--- Dev/trunk/src/node_modules/express/node_modules/debug/package.json	(revision 484)
+++ Dev/trunk/src/node_modules/express/node_modules/debug/package.json	(revision 487)
@@ -1,5 +1,5 @@
 {
   "name": "debug",
-  "version": "0.7.2",
+  "version": "0.7.4",
   "repository": {
     "type": "git",
@@ -21,8 +21,13 @@
   },
   "main": "lib/debug.js",
-  "browserify": "debug.js",
+  "browser": "./debug.js",
   "engines": {
     "node": "*"
   },
+  "files": [
+    "lib/debug.js",
+    "debug.js",
+    "index.js"
+  ],
   "component": {
     "scripts": {
@@ -31,11 +36,11 @@
     }
   },
-  "readme": "\n# debug\n\n  tiny node.js debugging utility modelled after node core's debugging technique.\n\n## Installation\n\n```\n$ npm install debug\n```\n\n## Usage\n\n With `debug` you simply invoke the exported function to generate your debug function, passing it a name which will determine if a noop function is returned, or a decorated `console.error`, so all of the `console` format string goodies you're used to work fine. A unique color is selected per-function for visibility.\n \nExample _app.js_:\n\n```js\nvar debug = require('debug')('http')\n  , http = require('http')\n  , name = 'My App';\n\n// fake app\n\ndebug('booting %s', name);\n\nhttp.createServer(function(req, res){\n  debug(req.method + ' ' + req.url);\n  res.end('hello\\n');\n}).listen(3000, function(){\n  debug('listening');\n});\n\n// fake worker of some kind\n\nrequire('./worker');\n```\n\nExample _worker.js_:\n\n```js\nvar debug = require('debug')('worker');\n\nsetInterval(function(){\n  debug('doing some work');\n}, 1000);\n```\n\n The __DEBUG__ environment variable is then used to enable these based on space or comma-delimited names. Here are some examples:\n\n  ![debug http and worker](http://f.cl.ly/items/18471z1H402O24072r1J/Screenshot.png)\n\n  ![debug worker](http://f.cl.ly/items/1X413v1a3M0d3C2c1E0i/Screenshot.png)\n\n## Millisecond diff\n\n  When actively developing an application it can be useful to see when the time spent between one `debug()` call and the next. Suppose for example you invoke `debug()` before requesting a resource, and after as well, the \"+NNNms\" will show you how much time was spent between calls.\n\n  ![](http://f.cl.ly/items/2i3h1d3t121M2Z1A3Q0N/Screenshot.png)\n\n  When stdout is not a TTY, `Date#toUTCString()` is used, making it more useful for logging the debug information as shown below:\n  \n  ![](http://f.cl.ly/items/112H3i0e0o0P0a2Q2r11/Screenshot.png)\n\n## Conventions\n\n If you're using this in one or more of your libraries, you _should_ use the name of your library so that developers may toggle debugging as desired without guessing names. If you have more than one debuggers you _should_ prefix them with your library name and use \":\" to separate features. For example \"bodyParser\" from Connect would then be \"connect:bodyParser\". \n\n## Wildcards\n\n  The \"*\" character may be used as a wildcard. Suppose for example your library has debuggers named \"connect:bodyParser\", \"connect:compress\", \"connect:session\", instead of listing all three with `DEBUG=connect:bodyParser,connect.compress,connect:session`, you may simply do `DEBUG=connect:*`, or to run everything using this module simply use `DEBUG=*`.\n\n  You can also exclude specific debuggers by prefixing them with a \"-\" character.  For example, `DEBUG=* -connect:*` would include all debuggers except those starting with \"connect:\".\n\n## Browser support\n\n Debug works in the browser as well, currently persisted by `localStorage`. For example if you have `worker:a` and `worker:b` as shown below, and wish to debug both type `debug.enable('worker:*')` in the console and refresh the page, this will remain until you disable with `debug.disable()`. \n\n```js\na = debug('worker:a');\nb = debug('worker:b');\n\nsetInterval(function(){\n  a('doing some work');\n}, 1000);\n\nsetInterval(function(){\n  a('doing some work');\n}, 1200);\n```\n\n## License \n\n(The MIT License)\n\nCopyright (c) 2011 TJ Holowaychuk &lt;tj@vision-media.ca&gt;\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.",
+  "readme": "# debug\n\n  tiny node.js debugging utility modelled after node core's debugging technique.\n\n## Installation\n\n```\n$ npm install debug\n```\n\n## Usage\n\n With `debug` you simply invoke the exported function to generate your debug function, passing it a name which will determine if a noop function is returned, or a decorated `console.error`, so all of the `console` format string goodies you're used to work fine. A unique color is selected per-function for visibility.\n \nExample _app.js_:\n\n```js\nvar debug = require('debug')('http')\n  , http = require('http')\n  , name = 'My App';\n\n// fake app\n\ndebug('booting %s', name);\n\nhttp.createServer(function(req, res){\n  debug(req.method + ' ' + req.url);\n  res.end('hello\\n');\n}).listen(3000, function(){\n  debug('listening');\n});\n\n// fake worker of some kind\n\nrequire('./worker');\n```\n\nExample _worker.js_:\n\n```js\nvar debug = require('debug')('worker');\n\nsetInterval(function(){\n  debug('doing some work');\n}, 1000);\n```\n\n The __DEBUG__ environment variable is then used to enable these based on space or comma-delimited names. Here are some examples:\n\n  ![debug http and worker](http://f.cl.ly/items/18471z1H402O24072r1J/Screenshot.png)\n\n  ![debug worker](http://f.cl.ly/items/1X413v1a3M0d3C2c1E0i/Screenshot.png)\n\n## Millisecond diff\n\n  When actively developing an application it can be useful to see when the time spent between one `debug()` call and the next. Suppose for example you invoke `debug()` before requesting a resource, and after as well, the \"+NNNms\" will show you how much time was spent between calls.\n\n  ![](http://f.cl.ly/items/2i3h1d3t121M2Z1A3Q0N/Screenshot.png)\n\n  When stderr is not a TTY, `Date#toUTCString()` is used, making it more useful for logging the debug information as shown below:\n  _(NOTE: Debug now uses stderr instead of stdout, so the correct shell command for this example is actually `DEBUG=* node example/worker 2> out &`)_\n  \n  ![](http://f.cl.ly/items/112H3i0e0o0P0a2Q2r11/Screenshot.png)\n  \n## Conventions\n\n If you're using this in one or more of your libraries, you _should_ use the name of your library so that developers may toggle debugging as desired without guessing names. If you have more than one debuggers you _should_ prefix them with your library name and use \":\" to separate features. For example \"bodyParser\" from Connect would then be \"connect:bodyParser\". \n\n## Wildcards\n\n  The \"*\" character may be used as a wildcard. Suppose for example your library has debuggers named \"connect:bodyParser\", \"connect:compress\", \"connect:session\", instead of listing all three with `DEBUG=connect:bodyParser,connect.compress,connect:session`, you may simply do `DEBUG=connect:*`, or to run everything using this module simply use `DEBUG=*`.\n\n  You can also exclude specific debuggers by prefixing them with a \"-\" character.  For example, `DEBUG=* -connect:*` would include all debuggers except those starting with \"connect:\".\n\n## Browser support\n\n Debug works in the browser as well, currently persisted by `localStorage`. For example if you have `worker:a` and `worker:b` as shown below, and wish to debug both type `debug.enable('worker:*')` in the console and refresh the page, this will remain until you disable with `debug.disable()`. \n\n```js\na = debug('worker:a');\nb = debug('worker:b');\n\nsetInterval(function(){\n  a('doing some work');\n}, 1000);\n\nsetInterval(function(){\n  a('doing some work');\n}, 1200);\n```\n\n## License \n\n(The MIT License)\n\nCopyright (c) 2011 TJ Holowaychuk &lt;tj@vision-media.ca&gt;\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n",
   "readmeFilename": "Readme.md",
   "bugs": {
     "url": "https://github.com/visionmedia/debug/issues"
   },
-  "_id": "debug@0.7.2",
-  "_from": "debug@*",
-  "scripts": {}
+  "homepage": "https://github.com/visionmedia/debug",
+  "_id": "debug@0.7.4",
+  "_from": "debug@*"
 }
Index: Dev/trunk/src/node_modules/express/node_modules/fresh/package.json
===================================================================
--- Dev/trunk/src/node_modules/express/node_modules/fresh/package.json	(revision 484)
+++ Dev/trunk/src/node_modules/express/node_modules/fresh/package.json	(revision 487)
@@ -17,4 +17,8 @@
   "readmeFilename": "Readme.md",
   "_id": "fresh@0.1.0",
-  "_from": "fresh@0.1.0"
+  "dist": {
+    "shasum": "97ce63fda273b033f866d3a29b9920d034aa2074"
+  },
+  "_from": "fresh@0.1.0",
+  "_resolved": "https://registry.npmjs.org/fresh/-/fresh-0.1.0.tgz"
 }
Index: Dev/trunk/src/node_modules/express/node_modules/methods/package.json
===================================================================
--- Dev/trunk/src/node_modules/express/node_modules/methods/package.json	(revision 484)
+++ Dev/trunk/src/node_modules/express/node_modules/methods/package.json	(revision 487)
@@ -17,4 +17,8 @@
   "readme": "ERROR: No README data found!",
   "_id": "methods@0.0.1",
-  "_from": "methods@0.0.1"
+  "dist": {
+    "shasum": "c0a484b3e1f28764c5cfd234e1a156d47092ecca"
+  },
+  "_from": "methods@0.0.1",
+  "_resolved": "https://registry.npmjs.org/methods/-/methods-0.0.1.tgz"
 }
Index: Dev/trunk/src/node_modules/express/node_modules/mkdirp/package.json
===================================================================
--- Dev/trunk/src/node_modules/express/node_modules/mkdirp/package.json	(revision 484)
+++ Dev/trunk/src/node_modules/express/node_modules/mkdirp/package.json	(revision 487)
@@ -32,5 +32,10 @@
     "url": "https://github.com/substack/node-mkdirp/issues"
   },
+  "homepage": "https://github.com/substack/node-mkdirp",
   "_id": "mkdirp@0.3.4",
-  "_from": "mkdirp@0.3.4"
+  "dist": {
+    "shasum": "8642eb45b73f5cd19824e94b572871013af8a305"
+  },
+  "_from": "mkdirp@0.3.4",
+  "_resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.3.4.tgz"
 }
Index: Dev/trunk/src/node_modules/express/node_modules/range-parser/package.json
===================================================================
--- Dev/trunk/src/node_modules/express/node_modules/range-parser/package.json	(revision 484)
+++ Dev/trunk/src/node_modules/express/node_modules/range-parser/package.json	(revision 487)
@@ -17,4 +17,8 @@
   "readmeFilename": "Readme.md",
   "_id": "range-parser@0.0.4",
-  "_from": "range-parser@0.0.4"
+  "dist": {
+    "shasum": "a91c03c737187765f0dcdbe32fa824e52b47a9a6"
+  },
+  "_from": "range-parser@0.0.4",
+  "_resolved": "https://registry.npmjs.org/range-parser/-/range-parser-0.0.4.tgz"
 }
Index: Dev/trunk/src/node_modules/express/node_modules/send/node_modules/mime/package.json
===================================================================
--- Dev/trunk/src/node_modules/express/node_modules/send/node_modules/mime/package.json	(revision 484)
+++ Dev/trunk/src/node_modules/express/node_modules/send/node_modules/mime/package.json	(revision 487)
@@ -31,5 +31,10 @@
     "url": "https://github.com/broofa/node-mime/issues"
   },
+  "homepage": "https://github.com/broofa/node-mime",
   "_id": "mime@1.2.6",
-  "_from": "mime@1.2.6"
+  "dist": {
+    "shasum": "193c6817fabeefd6a5f29acabd0b6cebc2c0910f"
+  },
+  "_from": "mime@1.2.6",
+  "_resolved": "https://registry.npmjs.org/mime/-/mime-1.2.6.tgz"
 }
Index: Dev/trunk/src/node_modules/express/node_modules/send/package.json
===================================================================
--- Dev/trunk/src/node_modules/express/node_modules/send/package.json	(revision 484)
+++ Dev/trunk/src/node_modules/express/node_modules/send/package.json	(revision 487)
@@ -31,4 +31,8 @@
   "readmeFilename": "Readme.md",
   "_id": "send@0.1.0",
-  "_from": "send@0.1.0"
+  "dist": {
+    "shasum": "4ea2b3aca167b22699fdbe4eb5bce35fc57ca7d5"
+  },
+  "_from": "send@0.1.0",
+  "_resolved": "https://registry.npmjs.org/send/-/send-0.1.0.tgz"
 }
Index: Dev/trunk/src/node_modules/express/package.json
===================================================================
--- Dev/trunk/src/node_modules/express/package.json	(revision 484)
+++ Dev/trunk/src/node_modules/express/package.json	(revision 487)
@@ -80,5 +80,10 @@
     "url": "https://github.com/visionmedia/express/issues"
   },
+  "homepage": "https://github.com/visionmedia/express",
   "_id": "express@3.2.6",
-  "_from": "express@~3.2.3"
+  "dist": {
+    "shasum": "4e16430ceaf29ac1f185c6996d50ca6394ec6357"
+  },
+  "_from": "express@3.2.6",
+  "_resolved": "https://registry.npmjs.org/express/-/express-3.2.6.tgz"
 }
Index: Dev/trunk/src/node_modules/tv4/README.md
===================================================================
--- Dev/trunk/src/node_modules/tv4/README.md	(revision 484)
+++ Dev/trunk/src/node_modules/tv4/README.md	(revision 487)
@@ -85,5 +85,5 @@
 ## Cyclical JavaScript objects
 
-While they don't occur in proper JSON, JavaScript does support self-referencing objects. Any of the above calls support an optional final argument, checkRecursive. If true, tv4 will handle self-referencing objects properly - this slows down validation slightly, but that's better than a hanging script.
+While they don't occur in proper JSON, JavaScript does support self-referencing objects. Any of the above calls support an optional third argument: `checkRecursive`. If true, tv4 will handle self-referencing objects properly - this slows down validation slightly, but that's better than a hanging script.
 
 Consider this data, notice how both `a` and `b` refer to each other:
@@ -99,16 +99,26 @@
 ```
 
-If the final checkRecursive argument were missing, this would throw a "too much recursion" error. 
-
-To enable supprot for this pass `true` as additional argument to any of the regular validation methods: 
+If the `checkRecursive` argument were missing, this would throw a "too much recursion" error. 
+
+To enable support for this, pass `true` as additional argument to any of the regular validation methods: 
 
 ```javascript
 tv4.validate(a, aSchema, true);
-tv4.validate(a, schema, asynchronousFunction, true);
-
 tv4.validateResult(data, aSchema, true); 
 tv4.validateMultiple(data, aSchema, true);
 ```
 
+## The `banUnknownProperties` flag
+
+Sometimes, it is desirable to flag all unknown properties as an error.  This is especially useful during development, to catch typos and the like, even when extra custom-defined properties are allowed.
+
+As such, tv4 implements ["ban unknown properties" mode](https://github.com/json-schema/json-schema/wiki/ban-unknown-properties-mode-\(v5-proposal\)), enabled by a fourth-argument flag:
+
+```javascript
+tv4.validate(data, schema, checkRecursive, true);
+tv4.validateResult(data, schema, checkRecursive, true);
+tv4.validateMultiple(data, schema, checkRecursive, true);
+```
+
 ## API
 
@@ -229,5 +239,5 @@
 ##### addFormat(format, validationFunction)
 
-Add a custom format validator.
+Add a custom format validator. (There are no built-in format validators.)
 
 * `format` is a string, corresponding to the `"format"` value in schemas.
Index: Dev/trunk/src/node_modules/tv4/package.json
===================================================================
--- Dev/trunk/src/node_modules/tv4/package.json	(revision 484)
+++ Dev/trunk/src/node_modules/tv4/package.json	(revision 487)
@@ -1,5 +1,5 @@
 {
   "name": "tv4",
-  "version": "1.0.11",
+  "version": "1.0.16",
   "author": {
     "name": "Geraint Luff"
@@ -51,5 +51,6 @@
     "grunt-markdown": "~0.3.0",
     "grunt-component": "~0.1.4",
-    "grunt-push-release": "~0.1.1"
+    "grunt-push-release": "~0.1.1",
+    "grunt-regex-replace": "~0.2.5"
   },
   "engines": {
@@ -57,7 +58,8 @@
   },
   "scripts": {
-    "test": "grunt test"
+    "test": "grunt test",
+    "prepublish": "grunt prepublish"
   },
-  "readme": "# Tiny Validator (for v4 JSON Schema)\n\n[![Build Status](https://secure.travis-ci.org/geraintluff/tv4.png?branch=master)](http://travis-ci.org/geraintluff/tv4) [![Dependency Status](https://gemnasium.com/geraintluff/tv4.png)](https://gemnasium.com/geraintluff/tv4) [![NPM version](https://badge.fury.io/js/tv4.png)](http://badge.fury.io/js/tv4)\n\nUse [json-schema](http://json-schema.org/) [draft v4](http://json-schema.org/latest/json-schema-core.html) to validate simple values and complex objects using a rich [validation vocabulary](http://json-schema.org/latest/json-schema-validation.html) ([examples](http://json-schema.org/examples.html)).\n\nThere is support for `$ref` with JSON Pointer fragment paths (```other-schema.json#/properties/myKey```).\n\n## Usage 1: Simple validation\n\n```javascript\nvar valid = tv4.validate(data, schema);\n```\n\nIf validation returns ```false```, then an explanation of why validation failed can be found in ```tv4.error```.\n\nThe error object will look something like:\n```json\n{\n    \"code\": 0,\n    \"message\": \"Invalid type: string\",\n    \"dataPath\": \"/intKey\",\n    \"schemaKey\": \"/properties/intKey/type\"\n}\n```\n\nThe `\"code\"` property will refer to one of the values in `tv4.errorCodes` - in this case, `tv4.errorCodes.INVALID_TYPE`.\n\nTo enable external schema to be referenced, you use:\n```javascript\ntv4.addSchema(url, schema);\n```\n\nIf schemas are referenced (```$ref```) but not known, then validation will return ```true``` and the missing schema(s) will be listed in ```tv4.missing```. For more info see the API documentation below.\n\n## Usage 2: Multi-threaded validation\n\nStoring the error and missing schemas does not work well in multi-threaded environments, so there is an alternative syntax:\n\n```javascript\nvar result = tv4.validateResult(data, schema);\n```\n\nThe result will look something like:\n```json\n{\n    \"valid\": false,\n    \"error\": {...},\n    \"missing\": [...]\n}\n```\n\n## Usage 3: Multiple errors\n\nNormally, `tv4` stops when it encounters the first validation error.  However, you can collect an array of validation errors using:\n\n```javascript\nvar result = tv4.validateMultiple(data, schema);\n```\n\nThe result will look something like:\n```json\n{\n    \"valid\": false,\n    \"errors\": [\n        {...},\n        ...\n    ],\n    \"missing\": [...]\n}\n```\n\n## Asynchronous validation\n\nSupport for asynchronous validation (where missing schemas are fetched) can be added by including an extra JavaScript file.  Currently, the only version requires jQuery (`tv4.async-jquery.js`), but the code is very short and should be fairly easy to modify for other libraries (such as MooTools).\n\nUsage:\n\n```javascript\ntv4.validate(data, schema, function (isValid, validationError) { ... });\n```\n\n`validationFailure` is simply taken from `tv4.error`.\n\n## Cyclical JavaScript objects\n\nWhile they don't occur in proper JSON, JavaScript does support self-referencing objects. Any of the above calls support an optional final argument, checkRecursive. If true, tv4 will handle self-referencing objects properly - this slows down validation slightly, but that's better than a hanging script.\n\nConsider this data, notice how both `a` and `b` refer to each other:\n\n```javascript\nvar a = {};\nvar b = { a: a };\na.b = b;\nvar aSchema = { properties: { b: { $ref: 'bSchema' }}};\nvar bSchema = { properties: { a: { $ref: 'aSchema' }}};\ntv4.addSchema('aSchema', aSchema);\ntv4.addSchema('bSchema', bSchema);\n```\n\nIf the final checkRecursive argument were missing, this would throw a \"too much recursion\" error. \n\nTo enable supprot for this pass `true` as additional argument to any of the regular validation methods: \n\n```javascript\ntv4.validate(a, aSchema, true);\ntv4.validate(a, schema, asynchronousFunction, true);\n\ntv4.validateResult(data, aSchema, true); \ntv4.validateMultiple(data, aSchema, true);\n```\n\n## API\n\nThere are additional api commands available for more complex use-cases:\n\n##### addSchema(uri, schema)\nPre-register a schema for reference by other schema and synchronous validation.\n\n````js\ntv4.addSchema('http://example.com/schema', { ... });\n````\n\n* `uri` the uri to identify this schema.\n* `schema` the schema object.\n\nSchemas that have their `id` property set can be added directly.\n\n````js\ntv4.addSchema({ ... });\n````\n\n##### getSchema(uri)\n\nReturn a schema from the cache.\n\n* `uri` the uri of the schema (may contain a `#` fragment)\n\n````js\nvar schema = tv4.getSchema('http://example.com/schema');\n````\n\n##### getSchemaMap()\n\nReturn a shallow copy of the schema cache, mapping schema document URIs to schema objects.\n\n````\nvar map = tv4.getSchemaMap();\n\nvar schema = map[uri];\n````\n\n##### getSchemaUris(filter)\n\nReturn an Array with known schema document URIs.\n\n* `filter` optional RegExp to filter URIs\n\n````\nvar arr = tv4.getSchemaUris();\n\n// optional filter using a RegExp\nvar arr = tv4.getSchemaUris(/^https?://example.com/);\n````\n\n##### getMissingUris(filter)\n\nReturn an Array with schema document URIs that are used as `$ref` in known schemas but which currently have no associated schema data.\n\nUse this in combination with `tv4.addSchema(uri, schema)` to preload the cache for complete synchronous validation with.\n\n* `filter` optional RegExp to filter URIs\n\n````\nvar arr = tv4.getMissingUris();\n\n// optional filter using a RegExp\nvar arr = tv4.getMissingUris(/^https?://example.com/);\n````\n\n##### dropSchemas()\n\nDrop all known schema document URIs from the cache.\n\n````\ntv4.dropSchemas();\n````\n\n##### freshApi()\n\nReturn a new tv4 instance with no shared state.\n\n````\nvar otherTV4 = tv4.freshApi();\n````\n\n##### reset()\n\nManually reset validation status from the simple `tv4.validate(data, schema)`. Although tv4 will self reset on each validation there are some implementation scenarios where this is useful.\n\n````\ntv4.reset();\n````\n\n##### language(code)\n\nSelect the language map used for reporting.\n\n* `code` is a language code, like `'en'` or `'en-gb'`\n\n````\ntv4.language('en-gb');\n````\n\n##### addLanguage(code, map)\n\nAdd a new language map for selection by `tv4.language(code)`\n\n* `code` is new language code\n* `map` is an object mapping error IDs or constant names (e.g. `103` or `\"NUMBER_MAXIMUM\"`) to language strings.\n\n````\ntv4.addLanguage('fr', { ... });\n\n// select for use\ntv4.language('fr')\n````\n\n##### addFormat(format, validationFunction)\n\nAdd a custom format validator.\n\n* `format` is a string, corresponding to the `\"format\"` value in schemas.\n* `validationFunction` is a function that either returns:\n  * `null` (meaning no error)\n  * an error string (explaining the reason for failure)\n\n````\ntv4.addFormat('decimal-digits', function (data, schema) {\n\tif (typeof data === 'string' && !/^[0-9]+$/.test(data)) {\n\t\treturn null;\n\t}\n\treturn \"must be string of decimal digits\";\n});\n````\n\nAlternatively, multiple formats can be added at the same time using an object:\n````\ntv4.addFormat({\n\t'my-format': function () {...},\n\t'other-format': function () {...}\n});\n````\n\n## Demos\n\n### Basic usage\n<div class=\"content inline-demo\" markdown=\"1\" data-demo=\"demo1\">\n<pre class=\"code\" id=\"demo1\">\nvar schema = {\n\t\"items\": {\n\t\t\"type\": \"boolean\"\n\t}\n};\nvar data1 = [true, false];\nvar data2 = [true, 123];\n\nalert(\"data 1: \" + tv4.validate(data1, schema)); // true\nalert(\"data 2: \" + tv4.validate(data2, schema)); // false\nalert(\"data 2 error: \" + JSON.stringify(tv4.error, null, 4));\n</pre>\n</div>\n\n### Use of <code>$ref</code>\n<div class=\"content inline-demo\" markdown=\"1\" data-demo=\"demo2\">\n<pre class=\"code\" id=\"demo2\">\nvar schema = {\n\t\"type\": \"array\",\n\t\"items\": {\"$ref\": \"#\"}\n};\nvar data1 = [[], [[]]];\nvar data2 = [[], [true, []]];\n\nalert(\"data 1: \" + tv4.validate(data1, schema)); // true\nalert(\"data 2: \" + tv4.validate(data2, schema)); // false\n</pre>\n</div>\n\n### Missing schema\n<div class=\"content inline-demo\" markdown=\"1\" data-demo=\"demo3\">\n<pre class=\"code\" id=\"demo3\">\nvar schema = {\n\t\"type\": \"array\",\n\t\"items\": {\"$ref\": \"http://example.com/schema\" }\n};\nvar data = [1, 2, 3];\n\nalert(\"Valid: \" + tv4.validate(data, schema)); // true\nalert(\"Missing schemas: \" + JSON.stringify(tv4.missing));\n</pre>\n</div>\n\n### Referencing remote schema\n<div class=\"content inline-demo\" markdown=\"1\" data-demo=\"demo4\">\n<pre class=\"code\" id=\"demo4\">\ntv4.addSchema(\"http://example.com/schema\", {\n\t\"definitions\": {\n\t\t\"arrayItem\": {\"type\": \"boolean\"}\n\t}\n});\nvar schema = {\n\t\"type\": \"array\",\n\t\"items\": {\"$ref\": \"http://example.com/schema#/definitions/arrayItem\" }\n};\nvar data1 = [true, false, true];\nvar data2 = [1, 2, 3];\n\nalert(\"data 1: \" + tv4.validate(data1, schema)); // true\nalert(\"data 2: \" + tv4.validate(data2, schema)); // false\n</pre>\n</div>\n\n## Supported platforms\n\n* Node.js\n* All modern browsers\n* IE >= 7\n\n## Installation\n\nYou can manually download [`tv4.js`](https://raw.github.com/geraintluff/tv4/master/tv4.js) or the minified [`tv4.min.js`](https://raw.github.com/geraintluff/tv4/master/tv4.min.js) and include it in your html to create the global `tv4` variable.\n\nAlternately use it as a CommonJS module:\n\n````js\nvar tv4 = require('tv4');\n````\n\n#### npm\n\n````\n$ npm install tv4\n````\n\n#### bower\n\n````\n$ bower install tv4\n````\n\n#### component.io\n\n````\n$ component install geraintluff/tv4\n````\n\n## Build and test\n\nYou can rebuild and run the node and browser tests using node.js and [grunt](http://http://gruntjs.com/):\n\nMake sure you have the global grunt cli command:\n````\n$ npm install grunt-cli -g\n````\n\nClone the git repos, open a shell in the root folder and install the development dependencies:\n\n````\n$ npm install\n````\n\nRebuild and run the tests:\n````\n$ grunt\n````\n\nIt will run a build and display one Spec-style report for the node.js and two Dot-style reports for both the plain and minified browser tests (via phantomJS). You can also use your own browser to manually run the suites by opening [`test/index.html`](http://geraintluff.github.io/tv4/test/index.html) and [`test/index-min.html`](http://geraintluff.github.io/tv4/test/index-min.html).\n\n## Contributing\n\nPull-requests for fixes and expansions are welcome. Edit the partial files in `/source` and add your tests in a suitable suite or folder under `/test/tests` and run `grunt` to rebuild and run the test suite. Try to maintain an idiomatic coding style and add tests for any new features. It is recommend to discuss big changes in an Issue.\n\n## Packages using tv4\n\n* [chai-json-schema](http://chaijs.com/plugins/chai-json-schema) is a [Chai Assertion Library](http://chaijs.com) plugin to assert values against json-schema.\n* [grunt-tv4](http://www.github.com/Bartvds/grunt-tv4) is a plugin for [Grunt](http://http://gruntjs.com/) that uses tv4 to bulk validate json files.\n\n## License\n\nThe code is available as \"public domain\", meaning that it is completely free to use, without any restrictions at all.  Read the full license [here](http://geraintluff.github.com/tv4/LICENSE.txt).\n\nIt's also available under an [MIT license](http://jsonary.com/LICENSE.txt).\n",
+  "readme": "# Tiny Validator (for v4 JSON Schema)\n\n[![Build Status](https://secure.travis-ci.org/geraintluff/tv4.png?branch=master)](http://travis-ci.org/geraintluff/tv4) [![Dependency Status](https://gemnasium.com/geraintluff/tv4.png)](https://gemnasium.com/geraintluff/tv4) [![NPM version](https://badge.fury.io/js/tv4.png)](http://badge.fury.io/js/tv4)\n\nUse [json-schema](http://json-schema.org/) [draft v4](http://json-schema.org/latest/json-schema-core.html) to validate simple values and complex objects using a rich [validation vocabulary](http://json-schema.org/latest/json-schema-validation.html) ([examples](http://json-schema.org/examples.html)).\n\nThere is support for `$ref` with JSON Pointer fragment paths (```other-schema.json#/properties/myKey```).\n\n## Usage 1: Simple validation\n\n```javascript\nvar valid = tv4.validate(data, schema);\n```\n\nIf validation returns ```false```, then an explanation of why validation failed can be found in ```tv4.error```.\n\nThe error object will look something like:\n```json\n{\n    \"code\": 0,\n    \"message\": \"Invalid type: string\",\n    \"dataPath\": \"/intKey\",\n    \"schemaKey\": \"/properties/intKey/type\"\n}\n```\n\nThe `\"code\"` property will refer to one of the values in `tv4.errorCodes` - in this case, `tv4.errorCodes.INVALID_TYPE`.\n\nTo enable external schema to be referenced, you use:\n```javascript\ntv4.addSchema(url, schema);\n```\n\nIf schemas are referenced (```$ref```) but not known, then validation will return ```true``` and the missing schema(s) will be listed in ```tv4.missing```. For more info see the API documentation below.\n\n## Usage 2: Multi-threaded validation\n\nStoring the error and missing schemas does not work well in multi-threaded environments, so there is an alternative syntax:\n\n```javascript\nvar result = tv4.validateResult(data, schema);\n```\n\nThe result will look something like:\n```json\n{\n    \"valid\": false,\n    \"error\": {...},\n    \"missing\": [...]\n}\n```\n\n## Usage 3: Multiple errors\n\nNormally, `tv4` stops when it encounters the first validation error.  However, you can collect an array of validation errors using:\n\n```javascript\nvar result = tv4.validateMultiple(data, schema);\n```\n\nThe result will look something like:\n```json\n{\n    \"valid\": false,\n    \"errors\": [\n        {...},\n        ...\n    ],\n    \"missing\": [...]\n}\n```\n\n## Asynchronous validation\n\nSupport for asynchronous validation (where missing schemas are fetched) can be added by including an extra JavaScript file.  Currently, the only version requires jQuery (`tv4.async-jquery.js`), but the code is very short and should be fairly easy to modify for other libraries (such as MooTools).\n\nUsage:\n\n```javascript\ntv4.validate(data, schema, function (isValid, validationError) { ... });\n```\n\n`validationFailure` is simply taken from `tv4.error`.\n\n## Cyclical JavaScript objects\n\nWhile they don't occur in proper JSON, JavaScript does support self-referencing objects. Any of the above calls support an optional third argument: `checkRecursive`. If true, tv4 will handle self-referencing objects properly - this slows down validation slightly, but that's better than a hanging script.\n\nConsider this data, notice how both `a` and `b` refer to each other:\n\n```javascript\nvar a = {};\nvar b = { a: a };\na.b = b;\nvar aSchema = { properties: { b: { $ref: 'bSchema' }}};\nvar bSchema = { properties: { a: { $ref: 'aSchema' }}};\ntv4.addSchema('aSchema', aSchema);\ntv4.addSchema('bSchema', bSchema);\n```\n\nIf the `checkRecursive` argument were missing, this would throw a \"too much recursion\" error. \n\nTo enable support for this, pass `true` as additional argument to any of the regular validation methods: \n\n```javascript\ntv4.validate(a, aSchema, true);\ntv4.validateResult(data, aSchema, true); \ntv4.validateMultiple(data, aSchema, true);\n```\n\n## The `banUnknownProperties` flag\n\nSometimes, it is desirable to flag all unknown properties as an error.  This is especially useful during development, to catch typos and the like, even when extra custom-defined properties are allowed.\n\nAs such, tv4 implements [\"ban unknown properties\" mode](https://github.com/json-schema/json-schema/wiki/ban-unknown-properties-mode-\\(v5-proposal\\)), enabled by a fourth-argument flag:\n\n```javascript\ntv4.validate(data, schema, checkRecursive, true);\ntv4.validateResult(data, schema, checkRecursive, true);\ntv4.validateMultiple(data, schema, checkRecursive, true);\n```\n\n## API\n\nThere are additional api commands available for more complex use-cases:\n\n##### addSchema(uri, schema)\nPre-register a schema for reference by other schema and synchronous validation.\n\n````js\ntv4.addSchema('http://example.com/schema', { ... });\n````\n\n* `uri` the uri to identify this schema.\n* `schema` the schema object.\n\nSchemas that have their `id` property set can be added directly.\n\n````js\ntv4.addSchema({ ... });\n````\n\n##### getSchema(uri)\n\nReturn a schema from the cache.\n\n* `uri` the uri of the schema (may contain a `#` fragment)\n\n````js\nvar schema = tv4.getSchema('http://example.com/schema');\n````\n\n##### getSchemaMap()\n\nReturn a shallow copy of the schema cache, mapping schema document URIs to schema objects.\n\n````\nvar map = tv4.getSchemaMap();\n\nvar schema = map[uri];\n````\n\n##### getSchemaUris(filter)\n\nReturn an Array with known schema document URIs.\n\n* `filter` optional RegExp to filter URIs\n\n````\nvar arr = tv4.getSchemaUris();\n\n// optional filter using a RegExp\nvar arr = tv4.getSchemaUris(/^https?://example.com/);\n````\n\n##### getMissingUris(filter)\n\nReturn an Array with schema document URIs that are used as `$ref` in known schemas but which currently have no associated schema data.\n\nUse this in combination with `tv4.addSchema(uri, schema)` to preload the cache for complete synchronous validation with.\n\n* `filter` optional RegExp to filter URIs\n\n````\nvar arr = tv4.getMissingUris();\n\n// optional filter using a RegExp\nvar arr = tv4.getMissingUris(/^https?://example.com/);\n````\n\n##### dropSchemas()\n\nDrop all known schema document URIs from the cache.\n\n````\ntv4.dropSchemas();\n````\n\n##### freshApi()\n\nReturn a new tv4 instance with no shared state.\n\n````\nvar otherTV4 = tv4.freshApi();\n````\n\n##### reset()\n\nManually reset validation status from the simple `tv4.validate(data, schema)`. Although tv4 will self reset on each validation there are some implementation scenarios where this is useful.\n\n````\ntv4.reset();\n````\n\n##### language(code)\n\nSelect the language map used for reporting.\n\n* `code` is a language code, like `'en'` or `'en-gb'`\n\n````\ntv4.language('en-gb');\n````\n\n##### addLanguage(code, map)\n\nAdd a new language map for selection by `tv4.language(code)`\n\n* `code` is new language code\n* `map` is an object mapping error IDs or constant names (e.g. `103` or `\"NUMBER_MAXIMUM\"`) to language strings.\n\n````\ntv4.addLanguage('fr', { ... });\n\n// select for use\ntv4.language('fr')\n````\n\n##### addFormat(format, validationFunction)\n\nAdd a custom format validator. (There are no built-in format validators.)\n\n* `format` is a string, corresponding to the `\"format\"` value in schemas.\n* `validationFunction` is a function that either returns:\n  * `null` (meaning no error)\n  * an error string (explaining the reason for failure)\n\n````\ntv4.addFormat('decimal-digits', function (data, schema) {\n\tif (typeof data === 'string' && !/^[0-9]+$/.test(data)) {\n\t\treturn null;\n\t}\n\treturn \"must be string of decimal digits\";\n});\n````\n\nAlternatively, multiple formats can be added at the same time using an object:\n````\ntv4.addFormat({\n\t'my-format': function () {...},\n\t'other-format': function () {...}\n});\n````\n\n## Demos\n\n### Basic usage\n<div class=\"content inline-demo\" markdown=\"1\" data-demo=\"demo1\">\n<pre class=\"code\" id=\"demo1\">\nvar schema = {\n\t\"items\": {\n\t\t\"type\": \"boolean\"\n\t}\n};\nvar data1 = [true, false];\nvar data2 = [true, 123];\n\nalert(\"data 1: \" + tv4.validate(data1, schema)); // true\nalert(\"data 2: \" + tv4.validate(data2, schema)); // false\nalert(\"data 2 error: \" + JSON.stringify(tv4.error, null, 4));\n</pre>\n</div>\n\n### Use of <code>$ref</code>\n<div class=\"content inline-demo\" markdown=\"1\" data-demo=\"demo2\">\n<pre class=\"code\" id=\"demo2\">\nvar schema = {\n\t\"type\": \"array\",\n\t\"items\": {\"$ref\": \"#\"}\n};\nvar data1 = [[], [[]]];\nvar data2 = [[], [true, []]];\n\nalert(\"data 1: \" + tv4.validate(data1, schema)); // true\nalert(\"data 2: \" + tv4.validate(data2, schema)); // false\n</pre>\n</div>\n\n### Missing schema\n<div class=\"content inline-demo\" markdown=\"1\" data-demo=\"demo3\">\n<pre class=\"code\" id=\"demo3\">\nvar schema = {\n\t\"type\": \"array\",\n\t\"items\": {\"$ref\": \"http://example.com/schema\" }\n};\nvar data = [1, 2, 3];\n\nalert(\"Valid: \" + tv4.validate(data, schema)); // true\nalert(\"Missing schemas: \" + JSON.stringify(tv4.missing));\n</pre>\n</div>\n\n### Referencing remote schema\n<div class=\"content inline-demo\" markdown=\"1\" data-demo=\"demo4\">\n<pre class=\"code\" id=\"demo4\">\ntv4.addSchema(\"http://example.com/schema\", {\n\t\"definitions\": {\n\t\t\"arrayItem\": {\"type\": \"boolean\"}\n\t}\n});\nvar schema = {\n\t\"type\": \"array\",\n\t\"items\": {\"$ref\": \"http://example.com/schema#/definitions/arrayItem\" }\n};\nvar data1 = [true, false, true];\nvar data2 = [1, 2, 3];\n\nalert(\"data 1: \" + tv4.validate(data1, schema)); // true\nalert(\"data 2: \" + tv4.validate(data2, schema)); // false\n</pre>\n</div>\n\n## Supported platforms\n\n* Node.js\n* All modern browsers\n* IE >= 7\n\n## Installation\n\nYou can manually download [`tv4.js`](https://raw.github.com/geraintluff/tv4/master/tv4.js) or the minified [`tv4.min.js`](https://raw.github.com/geraintluff/tv4/master/tv4.min.js) and include it in your html to create the global `tv4` variable.\n\nAlternately use it as a CommonJS module:\n\n````js\nvar tv4 = require('tv4');\n````\n\n#### npm\n\n````\n$ npm install tv4\n````\n\n#### bower\n\n````\n$ bower install tv4\n````\n\n#### component.io\n\n````\n$ component install geraintluff/tv4\n````\n\n## Build and test\n\nYou can rebuild and run the node and browser tests using node.js and [grunt](http://http://gruntjs.com/):\n\nMake sure you have the global grunt cli command:\n````\n$ npm install grunt-cli -g\n````\n\nClone the git repos, open a shell in the root folder and install the development dependencies:\n\n````\n$ npm install\n````\n\nRebuild and run the tests:\n````\n$ grunt\n````\n\nIt will run a build and display one Spec-style report for the node.js and two Dot-style reports for both the plain and minified browser tests (via phantomJS). You can also use your own browser to manually run the suites by opening [`test/index.html`](http://geraintluff.github.io/tv4/test/index.html) and [`test/index-min.html`](http://geraintluff.github.io/tv4/test/index-min.html).\n\n## Contributing\n\nPull-requests for fixes and expansions are welcome. Edit the partial files in `/source` and add your tests in a suitable suite or folder under `/test/tests` and run `grunt` to rebuild and run the test suite. Try to maintain an idiomatic coding style and add tests for any new features. It is recommend to discuss big changes in an Issue.\n\n## Packages using tv4\n\n* [chai-json-schema](http://chaijs.com/plugins/chai-json-schema) is a [Chai Assertion Library](http://chaijs.com) plugin to assert values against json-schema.\n* [grunt-tv4](http://www.github.com/Bartvds/grunt-tv4) is a plugin for [Grunt](http://http://gruntjs.com/) that uses tv4 to bulk validate json files.\n\n## License\n\nThe code is available as \"public domain\", meaning that it is completely free to use, without any restrictions at all.  Read the full license [here](http://geraintluff.github.com/tv4/LICENSE.txt).\n\nIt's also available under an [MIT license](http://jsonary.com/LICENSE.txt).\n",
   "readmeFilename": "README.md",
   "bugs": {
@@ -65,5 +67,9 @@
   },
   "homepage": "https://github.com/geraintluff/tv4",
-  "_id": "tv4@1.0.11",
-  "_from": "tv4@"
+  "_id": "tv4@1.0.16",
+  "dist": {
+    "shasum": "f35372c01e94355b7aaff5860455fd231e2d9802"
+  },
+  "_from": "tv4@1.0.16",
+  "_resolved": "https://registry.npmjs.org/tv4/-/tv4-1.0.16.tgz"
 }
Index: Dev/trunk/src/node_modules/tv4/tv4.async-jquery.js
===================================================================
--- Dev/trunk/src/node_modules/tv4/tv4.async-jquery.js	(revision 484)
+++ Dev/trunk/src/node_modules/tv4/tv4.async-jquery.js	(revision 487)
@@ -4,14 +4,14 @@
 if (typeof (tv4.asyncValidate) === 'undefined') {
 	tv4.syncValidate = tv4.validate;
-	tv4.validate = function (data, schema, callback, checkRecursive) {
+	tv4.validate = function (data, schema, callback, checkRecursive, banUnknownProperties) {
 		if (typeof (callback) === 'undefined') {
-			return this.syncValidate(data, schema, checkRecursive);
+			return this.syncValidate(data, schema, checkRecursive, banUnknownProperties);
 		} else {
-			return this.asyncValidate(data, schema, callback, checkRecursive);
+			return this.asyncValidate(data, schema, callback, checkRecursive, banUnknownProperties);
 		}
 	};
-	tv4.asyncValidate = function (data, schema, callback, checkRecursive) {
+	tv4.asyncValidate = function (data, schema, callback, checkRecursive, banUnknownProperties) {
 		var $ = jQuery;
-		var result = tv4.validate(data, schema, checkRecursive);
+		var result = tv4.validate(data, schema, checkRecursive, banUnknownProperties);
 		if (!tv4.missing.length) {
 			callback(result, tv4.error);
@@ -28,5 +28,5 @@
 			// When all requests done, try again
 			$.when.apply($, missingSchemas).done(function () {
-				var result = tv4.asyncValidate(data, schema, callback, checkRecursive);
+				var result = tv4.asyncValidate(data, schema, callback, checkRecursive, banUnknownProperties);
 			});
 		}
Index: Dev/trunk/src/node_modules/tv4/tv4.js
===================================================================
--- Dev/trunk/src/node_modules/tv4/tv4.js	(revision 484)
+++ Dev/trunk/src/node_modules/tv4/tv4.js	(revision 487)
@@ -133,5 +133,7 @@
 		this.scannedFrozen = [];
 		this.scannedFrozenSchemas = [];
-		this.key = 'tv4_validation_id';
+		this.scannedFrozenValidationErrors = [];
+		this.validatedSchemasKey = 'tv4_validation_id';
+		this.validationErrorsKey = 'tv4_validation_errors_id';
 	}
 	if (trackUnknownProperties) {
@@ -240,12 +242,12 @@
 };
 ValidatorContext.prototype.searchSchemas = function (schema, url) {
-	if (typeof schema.id === "string") {
-		if (isTrustedUrl(url, schema.id)) {
-			if (this.schemas[schema.id] === undefined) {
-				this.schemas[schema.id] = schema;
-			}
-		}
-	}
-	if (typeof schema === "object") {
+	if (schema && typeof schema === "object") {
+		if (typeof schema.id === "string") {
+			if (isTrustedUrl(url, schema.id)) {
+				if (this.schemas[schema.id] === undefined) {
+					this.schemas[schema.id] = schema;
+				}
+			}
+		}
 		for (var key in schema) {
 			if (key !== "enum") {
@@ -264,5 +266,5 @@
 ValidatorContext.prototype.addSchema = function (url, schema) {
 	//overload
-	if (typeof schema === 'undefined') {
+	if (typeof url !== 'string' || typeof schema === 'undefined') {
 		if (typeof url === 'object' && typeof url.id === 'string') {
 			schema = url;
@@ -331,11 +333,24 @@
 	}
 
-	if (this.checkRecursive && (typeof data) === 'object') {
+	var startErrorCount = this.errors.length;
+	var frozenIndex, scannedFrozenSchemaIndex = null, scannedSchemasIndex = null;
+	if (this.checkRecursive && data && typeof data === 'object') {
 		topLevel = !this.scanned.length;
-		if (data[this.key] && data[this.key].indexOf(schema) !== -1) { return null; }
-		var frozenIndex;
+		if (data[this.validatedSchemasKey]) {
+			var schemaIndex = data[this.validatedSchemasKey].indexOf(schema);
+			if (schemaIndex !== -1) {
+				this.errors = this.errors.concat(data[this.validationErrorsKey][schemaIndex]);
+				return null;
+			}
+		}
 		if (Object.isFrozen(data)) {
 			frozenIndex = this.scannedFrozen.indexOf(data);
-			if (frozenIndex !== -1 && this.scannedFrozenSchemas[frozenIndex].indexOf(schema) !== -1) { return null; }
+			if (frozenIndex !== -1) {
+				var frozenSchemaIndex = this.scannedFrozenSchemas[frozenIndex].indexOf(schema);
+				if (frozenSchemaIndex !== -1) {
+					this.errors = this.errors.concat(this.scannedFrozenValidationErrors[frozenIndex][frozenSchemaIndex]);
+					return null;
+				}
+			}
 		}
 		this.scanned.push(data);
@@ -346,9 +361,15 @@
 				this.scannedFrozenSchemas.push([]);
 			}
-			this.scannedFrozenSchemas[frozenIndex].push(schema);
+			scannedFrozenSchemaIndex = this.scannedFrozenSchemas[frozenIndex].length;
+			this.scannedFrozenSchemas[frozenIndex][scannedFrozenSchemaIndex] = schema;
+			this.scannedFrozenValidationErrors[frozenIndex][scannedFrozenSchemaIndex] = [];
 		} else {
-			if (!data[this.key]) {
+			if (!data[this.validatedSchemasKey]) {
 				try {
-					Object.defineProperty(data, this.key, {
+					Object.defineProperty(data, this.validatedSchemasKey, {
+						value: [],
+						configurable: true
+					});
+					Object.defineProperty(data, this.validationErrorsKey, {
 						value: [],
 						configurable: true
@@ -356,8 +377,11 @@
 				} catch (e) {
 					//IE 7/8 workaround
-					data[this.key] = [];
-				}
-			}
-			data[this.key].push(schema);
+					data[this.validatedSchemasKey] = [];
+					data[this.validationErrorsKey] = [];
+				}
+			}
+			scannedSchemasIndex = data[this.validatedSchemasKey].length;
+			data[this.validatedSchemasKey][scannedSchemasIndex] = schema;
+			data[this.validationErrorsKey][scannedSchemasIndex] = [];
 		}
 	}
@@ -376,5 +400,5 @@
 		while (this.scanned.length) {
 			var item = this.scanned.pop();
-			delete item[this.key];
+			delete item[this.validatedSchemasKey];
 		}
 		this.scannedFrozen = [];
@@ -391,4 +415,10 @@
 			this.prefixErrors(errorCount, dataPart, schemaPart);
 		}
+	}
+	
+	if (scannedFrozenSchemaIndex !== null) {
+		this.scannedFrozenValidationErrors[frozenIndex][scannedFrozenSchemaIndex] = this.errors.slice(startErrorCount);
+	} else if (scannedSchemasIndex !== null) {
+		data[this.validationErrorsKey][scannedSchemasIndex] = this.errors.slice(startErrorCount);
 	}
 
@@ -996,11 +1026,11 @@
 }
 function normSchema(schema, baseUri) {
-	if (baseUri === undefined) {
-		baseUri = schema.id;
-	} else if (typeof schema.id === "string") {
-		baseUri = resolveUrl(baseUri, schema.id);
-		schema.id = baseUri;
-	}
-	if (typeof schema === "object") {
+	if (schema && typeof schema === "object") {
+		if (baseUri === undefined) {
+			baseUri = schema.id;
+		} else if (typeof schema.id === "string") {
+			baseUri = resolveUrl(baseUri, schema.id);
+			schema.id = baseUri;
+		}
 		if (Array.isArray(schema)) {
 			for (var i = 0; i < schema.length; i++) {
@@ -1050,5 +1080,5 @@
 	FORMAT_CUSTOM: 500,
 	// Schema structure
-	CIRCULAR_REFERENCE: 500,
+	CIRCULAR_REFERENCE: 600,
 	// Non-standard validation options
 	UNKNOWN_PROPERTY: 1000
@@ -1091,14 +1121,29 @@
 
 function ValidationError(code, message, dataPath, schemaPath, subErrors) {
+	Error.call(this);
 	if (code === undefined) {
 		throw new Error ("No code supplied for error: "+ message);
 	}
+	this.message = message;
 	this.code = code;
-	this.message = message;
 	this.dataPath = dataPath || "";
 	this.schemaPath = schemaPath || "";
 	this.subErrors = subErrors || null;
-}
-ValidationError.prototype = new Error();
+
+	var err = new Error(this.message);
+	this.stack = err.stack || err.stacktrace;
+	if (!this.stack) {
+		try {
+			throw err;
+		}
+		catch(err) {
+			this.stack = err.stack || err.stacktrace;
+		}
+	}
+}
+ValidationError.prototype = Object.create(Error.prototype);
+ValidationError.prototype.constructor = ValidationError;
+ValidationError.prototype.name = 'ValidationError';
+
 ValidationError.prototype.prefixWith = function (dataPrefix, schemaPrefix) {
 	if (dataPrefix !== null) {
@@ -1265,4 +1310,2 @@
 
 })(this);
-
-//@ sourceMappingURL=tv4.js.map
