Move the details of file writing to `format.py`.
Fill in save and load implementations not using pickle.

Much of this is copied from or adapted from Numpy code.
Add a blank line.
Add and tweak some docstrings.
Remove unused imports.
Add a couple of comments about copied functions.
Add a module docstring describing the .dap format.