Added save functions.

I've added some very basic save functions for writing to SRAM. These
functions are originally from OpenPoke and may have been slightly
modified.