TaskFactory changes

* Configuring NM CPU and Mem using env vars
* Removed hard-coded user