Improved dat finding. Added ftldat protocol. Added build scripts.