The Instability of Geophysical Flows: Two-layer Frontal Instabilities and Continuously Stratified Inertial Instabilities