Task could be put in the flush queue and then embedded before being flushed, causing _fireTasksFlushEvents to stall. This commit fixes that.
Tasks may have been added to the flushQueue while flushing, so making sure flush those as well in _fireTasksFlushEvents before calling _flushQueuedTasks.
Fixed jslint error.
Update .travis.yml
Merge pull request #21 from yahoo/embeddedChildrenFix

Fixed potential stalling of _fireTasksFlushEvents