Added testpdb to setup.py, partially rewrote.

Copied from Flask-Statics-Helper.