FOSS:  Fixing CI build.

  - Adding thrift from source build script
  - Adding custom config for CI
  - CI tests validity for ruby + java in local mode.

Change-Id: I501891e923ef00b073612ab0fce6fdd90fe228f9