Wire up savestates; breaks rgui for now