Add ability to specify custom dependencies for index task

Closes #20