Use nanosecond-precision time strings in rethinkdb.logs primary key.
Make format_time() take a flag to switch between local time and GMT. Use GMT when formatting rethinkdb.logs timestamps.