update README
add .gitignore and don't add node_modules. fix #1
generalize code into getMetadata
write handleErrors helper
load all responses, not only the first page. fix #2
save all documents in data directory
Merge pull request #5 from ahdinosaur/master

fix #1 and #2