Uuid validation

Implement some validation that will keep Postgres from complaining about badly formatted UUIDs.

@twinge  can you take a look? I've fixed some of the issues you already raised.

Also, I'm not sure in retrospect that the PostgresUuidValidator was a good idea. It's not often that someone would pass an id in. So I'm curious what you think.  Remove it?