support for 1.6.x

@odino @nrk  
This PR is to support new version of ODB, in this branch 1.6.x.
To fix all test i introduced a new fixtures script.

If is ok for you , merge it.

Of course this is the first step. 
We have to add to the library the new way ( graph ) to handle documents.