Adding WEBPY_ENV for testing, cleanup in deploy bash and snot, setting content type in basehandler