Added a custom target for generating flatbuffers to ensure they are always built.

That way we don't have to list the headers in the sources.
ClientAPI changes.
Moved buffertest to store/test and turned it into a reproducible benchmark.