Removed old list_calendars query that queried the acs_perms tables directly.Using permission_p instead since it automatically check rel_segments. Neededfor dotlrn.
Added a new function that returns the task_id for a particular case/taskkey.The only way to get this (needed to fire a message transition) was for one'sclient code to poke into the datamodel directly with a select.