Bug 896297 - New profile builder api.

New command line option --profile-builder X to replace profile builder.
New command line option --profile-base X used to set the default profile preferences.
Simplify Mocha binary path resolution

Additionally, increase cross-platform compatability through consistent
use of `path.join`.