Improve tasklib

* chdir to task dir
* improve puppet status
* add local testing handle

Related to blueprint granular-deployment-based-on-tasks

Change-Id: Ib1cdc82bf72d6f9a61191b2347a855ac3bf49129