node-ffi: fix Callback interface
addMethod params arguments vs array syntax

jQUery Validation does not send arguments but an array of the argument already built. By using the ... syntax of TypeScript, we get an array with one item that has the array sent by jQuery validation. I think the definition should use an array instead of arguments syntax.
Changed the any[] to be any

http://jqueryvalidation.org/jQuery.validator.addMethod#jQuery-validator-addMethod-name-method-message
Support AMD

Added an export module, because the original state-machine.js supports AMD, which feature was not available from TypeScript before this patch.
Add definition of jquery.placeholder.  https://github.com/mathiasbynens/jquery-placeholder
Add return type.
Fixed d3 definitions for d3.geom.voronoi
d3.js definitions: added a more complex Voronoi diagram test case, and updated definitions to pass
Added missing functions to d3 EnterSelection interface
Socket.io - added return type of SocketNamespace for authorization method
Socket.io - moved interfaces from global evil namespace 'socket.io' module
More updates for the latest version.
Add CORS method on restify module
Fix typo on restify type definition

InvalidArgu**e**mentError => InvalidArgumentError
fix the return type of google.maps.Polygon.getPaths
jQuery: JSDoc completeness within reach

well nearly
jQuery: tests now cast to svgjs.LinkedHTMLElement

This could be made implicit by extending the JQuery interface with:
get(index: number): svgjs.LinkedHTMLElement;

Looking at the library it didn't seem sensible to create a dependency on
jQuery even though the tests have one.
jQuery: Put back in what I accidentally removed
Merge pull request #1839 from johnnyreilly/master

jQuery: JSDoc completeness within reach
Fix $q.when definition