Add UUIDs to trails

Also turns validations into dictionary objects, instead of a simple
array.
Add UUID generation rake task

Will assign UUIDs to any item that doesn't already have one.
Can be run from generate:uuid