Rewrite HPX initialization code to properly start HPX only once.

Conflicts:
	hpxMP.cpp