added a test case for integration thrift test
return 500s code for errors
intelligently invoke the correct dataplugin according to file extension