Bug 952497 - getPid in the rewritten install-gaia.js writes to a constant file name

https://bugzilla.mozilla.org/show_bug.cgi?id=952497
1.  the way how we get the app name from manifest.
2.  how we parse the b2g-ps into JSON object
3.  tmpfile with random file name
4.  kill process after push files