Use GNU readline for autocompletion, playlists display, some refactoring