fix 'masks earlier declaration' warning
move xml generation for repo indexes to utils module
fix handling of repo management
add base for events