Selection api updated

Yeah, I put the wigglemaps code separate to put in a proper license header and attribution.