This commit mostly reproduces the structure of gestioncof's events, renames some stuff and adds a generic export view.
get_by_natural_key