implement retro_reset()
some cleanups.
implement saveram, savestates and retro_reset().