This patch contains a number of updates to the task plugin.

* Handle a missing ALPS spool directory
* Update debug statements to work like the switch plugin
* Move some code into static functions
* Keep track of the number of active job steps and call
  alpsc_node_app_epilogue