wrapped app test in TODO
have a separate $profiles_native_api_root_url that should make it possible to talk to stage
rewrite canonical_url_to_json to detect bad JSON and have better cache handling