support auto ID creation

 - Id of 'undefined' will create ID automatically
 - clean out REST methods