Added support to filter attributes and restricted attributes to relationships on RESTful API.