Better error handling and cleanup if instanciation runs into error.

This concerns AQL in the cluster.
Add Jan's patch for the indexRangeNode recognition.

We change all EnumerateCollectionNodes to IndexRangeNodes if possible
and do not keep the old plans.
Merge branch 'devel' of ssh://github.com/triAGENS/ArangoDB into devel