Astronomia ex machina: a history, primer, and outlook on neural networks in astronomy