Added applySync method. Issue: caolan/async#208
Added test case for applySync