8044773: Refactor jdk.net API so that it can be moved out of the base moduleReviewed-by: alanb, erikj, mchung