Fixes issue #93.

Also refactors views to include a masterview that provides scope for $ method calls.