Convert claimedTasksStream to latest dart

This is a working version of claimed tasks. To get it working
run build.dart. Part of #507