Social and Legal Tools in the Integration of Refugees and Immigrants