Delete unused files
Move listener and metrics code to separate packages