open kadamwhite/wordpress-rest-api#51

Add method to bind new endpoint handlers

kadamwhite

Per @rmccue, providers of the WP-API can expose new query endpoints and we should acocunt for those.

[6/30/14, 3:01:29 AM] Ryan McCue: So e.g. for WooCommerce, implementing /products as a shorthand for /posts?type=products

The option we discussed was to add a .customEndpoint method, in the manner of .registerType (see #7); however, the other option would be to make a function on WP that could be used to define a new constructor and specify the types at instantiation. Worth discussing. cc @carldanley