add nix-rehash to build process
integrate elasticsearch
add zedstate to gitignore
minor fixes