Add database export resource

Ability to export the graph database from a restful resource. This is
useful for debugging early installations, but shouldn't be used for
large databases.
Also added commons collections to the pom to fix an issue.