In ‘A Million Ways to Die in the West’ the creator of ‘Family Guy’ tries his luck with the least popular genre of our time