[wip] Resource views

It should be possible to save the state of a view for a given CKAN resource, but some CKAN model changes are necessary so that there is somewhere to store this data.
can't we merge 072 and 073?
Also the commands should be wrapped in a transaction so we don't mess up the db if something fails.