merged everything back into one package

This time, the source is separated between library and tools, so we
avoid the ridiculously redundant builds and unbearable build times.