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