reorganizing code
rest service supports starting task via http PUT