Bring over all the schema logic from the jeresig/ukiyoe-web repo.