Added getByView, and reworked schema version code to use numbers not the rev.