Better handling of multi-valued attributes

This commit modifies the behaviour of getAttributeValue() so that when
multiple values are present in the CAS token, only the first is
returned. This is useful mostly to handle multiple email addresses.