added api resource definition and edits to make ember play well with the api data