Apply Priority Queue to Task list, move task handling up to tarantula

Closes #14

Todo: Replace custom ResourcePool for something more common like [generic-pool](https://www.npmjs.org/package/generic-pool)