Bug fixes and read from stdin

Fixes two bugs:

* `importing herd` and testing functions from within the python interactive interpreter executes code undesirably.  Fixed.
* Junk being passed into `--hostlist` not being sanitized like other methods.  Fixed.

Adds a feature:

* Reading the host list from `stdin` if hosts.dat and `--hostlist` is not provided in the arguments.
I'm assuming this isn't meant to be here :)