Added new parameter option: attributes.

Its the opposite of ignore and only (re)stores values present in its
array.
Replaced hasOwnProperty calls with _.has.