'id' in opts has become 'idGenerator'. Changes to the JS to make use of the generator function. Version to 0.2.1-SNAPSHOT.