provide support to export entities with all its references
improve the exception in case there is a bad exception
fixed some minor points and added basic test coverage
fix test failures
fix test failure
Merge pull request #15 from dawehner/export-dependencies

provide support to export entities with all its references