From representations of quivers via Hall and Loewy algebras to quantum groups