CLI testing framework

This is a really simple test framework for cli.py that uses monkey patch to substitute out for the URL functions and just validates that requests get made to the proper URLs with the proper data being sent. If people think it's a good idea then it can be cleaned up and added.
A blank line is customary between the docstring's summary and the rest.

[PEP257](http://legacy.python.org/dev/peps/pep-0257/) is worth reading.