Remove spurious ws char.
Some basic bash refactoring

- use env on #!
- Make modular
  - Can be run (source stream.sh; main)
- Allow overrides from the environment
  PASSWORD=… ./stream.sh
- Quote all variables. Prevent errors from parameter expansion.
Merge pull request #1 from ingydotnet/master

Various bash stuff