More refactoring

1. replace self made methods by ruby URI where possible
2. extract sequences generation logic to Array refinement
3. replace urls by uris everywhere