removed event_type and trigger_name parameters from core.triggers.when
Removed reference to the simple when decorator formats. They should work now, but let's not promote them so that they can be removed in the future.
DirectoryEventTrigger, ItemAddedTrigger, ItemRemovedTrigger and ItemUpdatedTrigger have not worked for a long time and I'm close, but more work needs to be done to OSGIEventTrigger for them to work properly. This PR adds them to the core.triggers.when decorator.
Made some fixes to core.utils.validate_uid and changed core.triggers to use it in all of the trigger classes for generating the trigger name. Previously, it was possible that the trigger names were not unique, but that should no longer be possible.
Fixes #180, #187, #189
Signed-off-by: Scott Rushworth openhab@5iver.com