Rename rest folder to api since it contains modules that are effectively api implementation details. Fix follow so it doesn't error when there are no _links. Join all nested follow promises to ensure errors propagate.