Fix deprecation warning test case.

The stacklevel parameter of the warnings.warn function is only required
when wrapper functions are used (to hide the wrapper functions).

The test case needs to be modified to print deprecation warnings (instead
of just ignoring them).
Switch from using distutils to setuptools.
Merge pull request #69 from profitbricks/master

Patches from Debian