Use python setup.py test and add support for travis
Only return an error when the payload is invalid in weblogging