cleanup in Resource.REST and Router. we sometimes forget that we are developing JS library.