The Pope has spent his first day in Ireland meeting the President and Prime Minister, visiting crowds and attending mass in Dublin.