updated API tools to pass socket and db via API object and varargs glue
expanded the API framework massively, added atomic time sync that gets pushed to clients every 15 minutes