THRIFT-2173 Move FrameBuffer creation to a factory method for cusomization

Client: Java
Patch: Eric Newton