Added support for attaching pools from a file/stdin.

- Added the --file option to the attach command. If a file is
  provided, pools will be read from the file. If the file is
  given as a single hyphen, pools will be read from stdin.