bugfix: Server was crashing when an attempt was made to add a view to a
dataset that did not exist. Now fixed, with a test.
Reorder some shoulds etc for better win when losing.