Rg import api

@bschwartz @chroniton Can you two take a quick peek at this before I merge?