An arsonist who firebombed a police station and set three vehicles ablaze in an attack which could have killed officers has been jailed.