This needs to be, at the very least, dependent upon useREST being true.  request does not work client-side.  So we either want a separate build that does just REST, or we only require request it we asked for it.