Fix creating resource operations

* deduplicated resource operations code - fixed inconsistencies between
  'pcs resource create', 'pcs resource op add' and 'pcs resource update'
* fixed check for duplicate resource operations - check is based on name
  and interval now (the same as in pacemaker)