Upgrade all NPGSQL references to v2.2.2

This requires the new EntityframeworkLegacy package, but removes the need
for prepareenv to replace the DLLs.
Fix a few more problems from NPGSQL Upgrade
WorkspaceViewModel: remove duplicate delayedTask nesting.

This allows consumers of this model to implement additional functionality
without being async.