Add a comparison operator (==) to the view.

Since views don't always have IDs, the standard AR comparison operator
won't work. Instead, we compare the internal attributes hash to see of
two objects are equivalent.
Bump version to 0.4.0.