Add SaveAndSet class.

This is a silly helper to automate saving/restoring memory locations with RAII.