Shaf: Added trait for defininfg actors that contain state.