Set the applied flag in proposal_commit

Instead of setting it in the controller, check for the return value of
apply_role in the proposal_commit ensure block, and mark the proposal as
applied accordingly.