Ben/schema dumper

write some minimal support for saving global-uid flags in schema.rb -- otherwise things get broken easily. 

@staugaard @grosser @bquorning 
nah, i dunno what they're gonna do with rails 5.