Fixes to beaker_sync_tasks

- Fixes BZ#994789
- Other fixes to account for the change to Task/TaskLibrary
- Adds a test

Bug: 994789
Change-Id: I7a79865663b5b2014a37159234ac5d7de05d2dc8
Merge "Fixes to beaker_sync_tasks" into develop