Added card querying and card library endpoints to CardController