added new import REST flag
implement command line REST for import and export