Make more testable

By adding an internal writer field to the spinner, the test can set it
to output to a buffer that can be inspected for expected output,
allowing tests to give better answers. Also could allow for API change
to permit having a spinner on stderr if desired.
Merge branch 'master' of https://github.com/briandowns/spinner
Merge pull request #13 from millere/master

Make more testable