fix 'as' syntax for exceptions - incompatible with python<=2.5
the json module is not available in versions of python older than 2.6, simplejson should be used in versions less than python 2.6
store the requirements in a requirements.txt file so they can be more easily installed using pip on travis
updated travis build to install requirements