In review bot, tee test output rather than piping to a file.

Reviewed at https://reviews.apache.org/r/28452/
Extract thrift into an API subproject.

Testing Done:
./gradlew -Pq build
./pants src/test/python:all

Bugs closed: AURORA-925

Reviewed at https://reviews.apache.org/r/28361/