Add createdAt meta property
Add support for relational tables
Fix writer flush and importing missing keys

WriteQueues weren't emptying their queue after writing... shit. There
was also a case of reaching into a subdoc when a key does not exist.
Not sure how this didn't come up before.
Rename to created_at because camelcase sucks in pg
Flush if at capacity too
Add support for index creation after import
Slimmer logging
Don't error if we can't add the index
Make indexes concurrently

If you used multiple processes on different shards, the first one to
finish would create the index and it would block/slow down the others
to the point where they couldn't finish. This is an attempt to fix that.
Build indexes only after all shard scanners done

Even though the index was being created concurrently, the inserts that
were occuring after the index was made were drastically slower, so they
weren't even finishing in time.

We need to delay the index creation until all three are done, so they
write their finish time to the metadata table, and then immediately
check to see if they were the nth person to write, where n is the
number of shards.
shards cli argument should be an integer

Passing the string argument in will make the slice fail, which causes
the index to be built immediately.
fix transforming _id to date in related tables

In the case that the "value" is an array (which is really an array of
values to transform) we should recurse and apply transform on each
element.
attempt to increase export speed by spreading out

Export speed crawls much slower when all shards are writing to the same
table, so we can deterministically sort the export order and rotate it
by a random amount so that hopefully the contention on a single
collection is less than before.
Use hostname as tailer identity record
Update mongo to 1.8.3
build indexes non-concurrently

Since we are always waiting for the last shard to build them, there is
no reason to worry about other workers trying to write changes. This
should increase performance drastically as well.
add default transform

When this was abstracted to its own method, I didn't realize that it
was returning nil on most cases.
replace invalid utf-8 byte sequences

This was causing some exports to crash mid-run, though I don't know the
source.
added relationships
This commit includes the relation changes from git@github.com:dpatti/mosql.git
foxcreek branch plus fixes. It currently only generates the relationship tables
but does not keep the relationship data fresh in the tailer. Development is
currently on hold for an in house java version, morphia-to-pgsql in
git@github.com:NewAmsterdamLabs/tools.git.