Generalized boundary triples, I. Some classes of isometric and unitary boundary pairs and realization problems for subclasses of Nevanlinna functions