this makes a single binary for server, build, indexing etc. and an abstracted lib-like core. needs work but its a first step.