Update Action registration API and add example Action.