Add full subdoc support to Javascript client

Hm. This means that if delegate is ever not provided, url will be a boolean false. should delegate be required on the constructor or maybe asserted here?