properly acquire shape write locks
Merge branch 'sharding' of https://github.com/triAGENS/ArangoDB into sharding
fixed jslint warnings