Bug 917717 - Implement getpid over marionette.

WARNING: unfortunately it gets the pid of the main process.
Bug 917717 - Get the app name properly.
Fixup: remove the getpid hackery
Bug 917717 - a now collect the data.