Notifications+RPC: fixed wrong usage behavior

- checking template existence when creating new receiver (java)
- checking template, target and locale option existence when creating new receiver (perl)
- checking primary properties when creating/updating new template