Set unit_id as last action attribute. Fix #38.
Use function name as parameter (not a function object). Fix #37.
Prepare to set last action after submit action
Fix sync_stores error "Cannot compare datetime.datetime to int"