The Knaster-Kuratowski and Mazurkiewicz theroy in hyperconvex metric spaces and some of its applications