#131 rebased on top of #141

I rebased on #131 on top of #141 so we could get the bugfixes for the batch fetching.  Note my modifications to the CHANGES_BATCH_SIZE part in index.js and also some small stuff in create-view.js for when the updateSeqDoc is null.