WIP on fixing things from code review
rename field compact_name to subdomain, added fk and unique contraints
fixed merged conflict
reordered lines so they are about same length
updated code to convert all compact_name to subdomain, added more tests, removed some unnessary tests, fixed spacing
addd app to list of disallowed sub domains
fixed spacing as suggested?
now fk keys are right I believe
mend