updated node-local api to support http and file protocols when working with files and removed all sync methods