Refactored click/double click functionality

Changed toggleItem and editItem to be called from a new function,
clickItem, instead of being directly bound to jQuery events. New
function is bound to a click on the toDoText of an item in order to
allow a more intuitive user experience