Add Before Item Added event

added a hook for just before the item is added so a developer could do an arbitrary check if they want to accept the value. If a dev wants to decide if the value should to be added, they can create an event handler for 'beforeItemAdded' and inside that handler either return false or call event.preventDefault when they wish not to have the item added. The text will also not be cleared from the input box.