Online Safety under Multiple Constraints and Input Bounds using gatekeeper: Theory and Applications