Albania qualified for a major tournament for the first time in their history as victory in Armenia secured their place at Euro 2016.