have api.Resource use scala.io.Source

no need to roll our own here -- old code dates back to Java days
give methods in api.Resource more reasonable names