Add file command.

Also add most testing infrastructure.
Chose todo file on the fly.

First try TODO, then fallback to .todo.