Reconnect downsample command to imported instrument data.
Simplify library creation now that is has locked construction.
Add a test for the downsample command.