Defining a view adds a method to Entity#from(db) that invokes the complex-query method in the design document. This resolves #21.