Clean up and combined scripts into one script and added command line interface.

* OO programming
* use argparse
* use logging
* Comply with http://legacy.python.org/dev/peps/pep-0008/
* Improved error handling
* Updated README.md

You might want to putt the script under a license …