Plumb --profile command line option

This change implements the --profile command line option.

Testing done:

Tested on Firefox with profile directory, invalid profile directory, and no
profile specified.