implement get/set/reset of CMD_MACRO and CMD_WAKE

* enable a variable number of macro_slots, macro_depth and wake_slots
* refine order of arguments in eeprom_store, usually it's dst followed by src