added missing count() method for server-side cursor
add unload protection when there are this barriers in the barrier list
added test for unloading
more assertions
Merge branch 'devel' of https://github.com/triAGENS/ArangoDB into devel