Mark proposals as applied on commit

This is another attempt for a fix of
https://bugzilla.novell.com/show_bug.cgi?id=861309

The previous solution was based on comparing the crowbar-revision of
proposal and the corresponding role. However, these numbers can diverge
arbitrarily and the comparison would not work as expected, as was observed in
https://bugzilla.novell.com/show_bug.cgi?id=877486

This patch uses a dedicated 'committed' attribute, which defaults to
false. It is set to 'true' after a proposal is committed and re-set back
to 'false' on any other operation.
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.
The attribute name is the same in barclamp and UI
Add applied attribute
Merge pull request #1081 from bkutil/add_applied_attribute

Add applied attribute
Merge pull request #1068 from bkutil/proposal_applied_check

Mark proposals as applied on commit