Low: Stateful: Clean up implementation of Stateful (bnc#867372)

* Advertise the promote/demote actions in the RA metadata
* Use the standard OCF return code macros where appropriate
* Remove trailing whitespace
Merge pull request #393 from krig/stateful

Low: Stateful: Clean up implementation of Stateful (bnc#867372)