added todo in plan_branches
ui_return_json functions now always return json

a fake one is generated when a command fails and bamboo would return
html
added convenience functions delete_task and insert_task