Gravity, Black Holes, and the Very Early Universe: An Introduction to General Relativity and Cosmology