Removed ugly global variable in test utils.
Added random profile generation. Added JSONP support, so that cross-domain communication is enabled.