Beginnings of private subdomain test.

See also https://codereview.appspot.com/110690043/.

@eranmes
Use map.copy and map.pop instead. Also, comment why we're removing the extensions - should they not be appended to the extensions you're going to add later?