use specified basepath
Manually patch to include fix from jwest-apigee for "broken pipe"
error.
ensure traceback is imported, added IOError message mappings and HTTP error message mappings.