Changed the API so that publicURL is used to work out paramIds and schema IDs to make it DRYer, and moved examples une directory up