Move RESTResource.java into internal

Change-Id: I7953934184ab1e76080227bd422408d5334403dc