After 14 years of trying and failing to gain a smartphone foothold, Amazon has announced it will discontinue its app store.