[BZ 617202] AlertConditionTemplate allows creation of AlertDefinitions e...

...asily from the CLI or through scripts.

This PR is following the necessary work to get sane API to add new AlertDefinitions programmatically through the remote interface (using CLI / Java / scripts). The initial pull request does not contain enough to be merged yet.